How to memcpy the two dimensional array in C:
I have a two dimensional array:
int a[100][100]; int c[10][10];
I want to use
That should work :
int i; for(i = 0; i<10; i++) { memcpy(&a[i], &c[i], sizeof(c[0])); }