#include  &lt;stdio.h&gt;    int main&#40;&#41;    &#123;        char c;        int i = 0;        FILE *file;        file = fopen&#40;&quot;test.txt&quot;, &quot;w+&quot;&#41;;        fprintf&#40;file, &quot;%c&quot;, 'a'&#41;;        fprintf&#40;file, &quot;%c&quot;, -1&#41;;        fprintf&#40;file, &quot;%c&quot;, 'b'&#41;;        fclose&#40;file&#41;;        file = fopen&#40;&quot;test.txt&quot;, &quot;r&quot;&#41;;        while &#40;&#40;c = fgetc&#40;file&#41;&#41; !=  -1&#41;            printf&#40;&quot;%c&quot;, c&#41;;        return 0;    &#125;
A. a
B. Infinite loop
C. Depends on what fgetc returns
D. Depends on the compiler
Answer:A
#include  &lt;stdio.h&gt;    int main&#40;&#41;    &#123;        char c;        int i = 0;        FILE *file;        file = fopen&#40;&quot;test.txt&quot;, &quot;w+&quot;&#41;;        fprintf&#40;file, &quot;%c&quot;, 'a'&#41;;        fprintf&#40;file, &quot;%c&quot;, -1&#41;;        fprintf&#40;file, &quot;%c&quot;, 'b'&#41;;        fclose&#40;file&#41;;        file = fopen&#40;&quot;test.txt&quot;, &quot;r&quot;&#41;;        while &#40;&#40;c = fgetc&#40;file&#41;&#41; !=  -1&#41;            printf&#40;&quot;%c&quot;, c&#41;;        return 0;    &#125;
A. a B. Infinite loop C. Depends on what fgetc returns D. Depends on the compiler
Explanation:None.