C program in data structure for storage representation of 2-D array
#include<stdio.h> #include<conio.h> void main() { int a[10][10],i,j,r,c; clrscr(); printf("\n Enter row and column number:-"); scanf("%d%d",&r,&c); printf("\n Enter %d*%d matrix:-",r,c); for(i=0;i<r;i++) { for(j=0;j<c;j++) { scanf("%d",&a[i][j]); } } printf("\n storage representation of 2-D array:-"); for(i=0;i<r;i++) { for(j=0;j<c;j++) { printf("\n[%d][%d]= %d",i,j,a[i][j]); } printf("\n"); } getch(); } /* OUTPUT Enter row and column number:-3 3 ...