So, modifying this part will work ?
while(fscanf(fp1, "%d", &n) > 0)
printf("%d\n", n);
How does feof work exactly ?
Type: Posts; User: Prestige
So, modifying this part will work ?
while(fscanf(fp1, "%d", &n) > 0)
printf("%d\n", n);
How does feof work exactly ?
I had written the following code which does the following:
It takes in a series of integers as input.
It prints all the integers that come before 42 has been input (assumes that the user inputs 42...