Skip to content
Snippets Groups Projects
dynamicarray2.c 473 B
Newer Older
#include<stdio.h>
int main(){
    int arr[4][4],i,j;
    printf("This is 4x4 dimension array\n");
    printf("Enter the 4x4 array values :\n");
    for(i=0;i<4;i++){
        for(j=0;j<4;j++){
            scanf("%d",&arr[i][j]);
        }
    }
    printf("-----------");
    printf("Values of the 4x4 array\n");
    for(i=0;i<4;i++)
    {
        for(j=0;j<4;j++)
        {
            printf("%d\t",arr[i][j]);
        }
        printf("\n");
    }
    printf("\ndone");
}