February 2020
Beginner to intermediate
616 pages
15h 16m
English
int a[10][10]
printf("Enter rows and columns of matrix: "); scanf("%d %d", &r, &c);
ptr = (int *)malloc(r * c * sizeof(int));
for(i=0; i<r; ++i) { for(j=0; j<c; ++j) { scanf("%d", &m); *(ptr+ i*c + j)=m; } }
Read now
Unlock full access