int num_arr[9]; int m = 0; FILE *fp;
fp = fopen("test.bin", "rb");
int x[10] = { -1,-3,-2,-5,-6,-7,-8,-9,-4 };
for (int i = 0; i <= 9; i++) {
fwrite(&x[i], sizeof(int), 9,...
Type: Posts; User: wztch
int num_arr[9]; int m = 0; FILE *fp;
fp = fopen("test.bin", "rb");
int x[10] = { -1,-3,-2,-5,-6,-7,-8,-9,-4 };
for (int i = 0; i <= 9; i++) {
fwrite(&x[i], sizeof(int), 9,...
can you explain a bit please ?
so I have this problem, I want to write array of numbers to binary file and then read them from it and write them into another array, but I get some wrong numbers, how do i fix it ?
#include...