Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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);
    }
}
 
PREVIOUS NEXT
Tagged: #write #array #bin #file
ADD COMMENT
Topic
Name
8+9 =