Question: Question 9 (2 points) Assume the following code is given: int a [5]={1,2,3,4,5} : int buffer [5]; FILE =fp= fopen (test, ww ) fwrite (a,
![a [5]={1,2,3,4,5} : int buffer [5]; FILE =fp= fopen ("test", ww ")](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66ef979baf05e_94766ef979b5adf9.jpg)
Question 9 (2 points) Assume the following code is given: int a [5]={1,2,3,4,5} : int buffer [5]; FILE =fp= fopen ("test", ww ") fwrite (a, sizeof(int ),5,fp); After line 10, the following lines are executed: tseek (fp, 2 a sizeot (int), SEEK END); fread (buffer, sizeof (int), 2,fp) i What gets stored in buffer [1]? a) 4 What gets stored in buffer [1]? a) 4 b) None of the given choices c) 1 d) 2 e) 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
