Short answer of what each Funtction do void run5 int a FILE


Short answer of what each Funtction do
void run5() {int a; FILE *file = fopen(\"input.txt\", \"a\"); fscanf(\"input.txt\", \"%d\", &a;);} void run6() {int a; FILE *file = fopen(\"input.txt\", \"w\"); fprintf(file, \"%d\", &a;);}

Solution

11) run5() function tries to read a character from input.txt file in ascii, but this will leads to a warining, because fscanf must contain, file pointer instead of file name.

12)run6() function tries to write a character (int) to file input.txt, but here it tries to write the address of a

 Short answer of what each Funtction do void run5() {int a; FILE *file = fopen(\

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site