#include#include void main() { int a[10][10],m,n,i,j; clrscr(); printf("\n Enter How Many Rows: "); scanf("%d",&m); printf("\n Enter How Many Columns: "); scanf("%d",&n); printf("\n Enter The Element in Matrix: \n"); for(i=0;i<m;i++) { for(j=0;j<n;j++) { scanf("%d",&a[i][j]); } } printf("\n Element in the Matrix are: \n"); for(i=0;i<m;i++) { for(j=0;j<n;j++) { printf("%d",a[i][j]); } printf("\n"); } getch(); } /*OUTPUT Enter How Many Rows: 4 Enter How Many Columns: 3 Enter The Element in Matrix: 4 7 8 5 6 9 1 2 3 4 5 6 Element in the Matrix are: 478 569 123 456 */
Write a 'C' Program for Storage representation of 2-D array.
Reviewed by
on
November 16, 2013
Rating: