how to write 2d array from bin file in c code example
Example: how to write 2d array from bin file in c
struct test arr[3][3];
for(int i = 0;i<3;i++){
for(int j = 0;j<3;j++){
fwrite(arr[i][j], sizeof(struct test), 1, fp);
}
}
struct test arr[3][3];
for(int i = 0;i<3;i++){
for(int j = 0;j<3;j++){
fwrite(arr[i][j], sizeof(struct test), 1, fp);
}
}