cara menulis array 2d dari file bin di 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);
    }
}
Troubled Turtle