#include &lt;stdio.h&gt;    int main &#40;&#41;    &#123;        FILE * p;        int n = 0;        p = fopen &#40;&quot;newname.txt&quot;, &quot;rb&quot;&#41;;        if &#40;p == NULL&#41;             perror &#40;&quot;Error opening file&quot;&#41;;        else        &#123;            while &#40;fgetc&#40;p&#41; != EOF&#41;            &#123;                ++n;            &#125;            if &#40;feof&#40;p&#41;&#41;             &#123;                printf &#40;&quot;%d\n&quot;, n&#41;;            &#125;            else                puts &#40;&quot;End-of-File was not reached.&quot;&#41;;            fclose &#40;p&#41;;        &#125;        return 0;    &#125;
A. 10
B. 15
C. Depends on the text file
D. None of the mentioned
Answer:A
#include &lt;stdio.h&gt;    int main &#40;&#41;    &#123;        FILE * p;        int n = 0;        p = fopen &#40;&quot;newname.txt&quot;, &quot;rb&quot;&#41;;        if &#40;p == NULL&#41;             perror &#40;&quot;Error opening file&quot;&#41;;        else        &#123;            while &#40;fgetc&#40;p&#41; != EOF&#41;            &#123;                ++n;            &#125;            if &#40;feof&#40;p&#41;&#41;             &#123;                printf &#40;&quot;%d\n&quot;, n&#41;;            &#125;            else                puts &#40;&quot;End-of-File was not reached.&quot;&#41;;            fclose &#40;p&#41;;        &#125;        return 0;    &#125;
A. 10 B. 15 C. Depends on the text file D. None of the mentioned
Explanation:In this program, We are reading the number of characters in the program by using the function feof.