#include &lt;stdio.h&gt;    #include &lt;string.h&gt;    int main&#40;&#41;    &#123;        char line&#91;3&#93;;        FILE *fp;        fp = fopen&#40;&quot;newfile.txt&quot;, &quot;r&quot;&#41;;        while &#40;fgets&#40;line, 3, fp&#41;&#41;        fputs&#40;line, stdout&#41;;        return 0;    &#125;
A. Compilation error
B. Infinite loop
C. Segmentation fault
D. No.of lines present in file newfile
Answer:A
#include &lt;stdio.h&gt;    #include &lt;string.h&gt;    int main&#40;&#41;    &#123;        char line&#91;3&#93;;        FILE *fp;        fp = fopen&#40;&quot;newfile.txt&quot;, &quot;r&quot;&#41;;        while &#40;fgets&#40;line, 3, fp&#41;&#41;        fputs&#40;line, stdout&#41;;        return 0;    &#125;
A. Compilation error B. Infinite loop C. Segmentation fault D. No.of lines present in file newfile