Answers for "how to write 2d array from bin file in c"

0

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);
    }
}
Posted by: Guest on May-23-2021

Browse Popular Code Answers by Language