#include &lt;stdio.h&gt;    int main &#40;&#41;    &#123;        FILE * p;        int c;        int n = 0;        p = fopen &#40;&quot;myfile.txt&quot;, &quot;r&quot;&#41;;        if &#40;p == NULL&#41;             perror &#40;&quot;Error opening file&quot;&#41;;        else        &#123;            do &#123;                c = getc &#40;p&#41;;                if &#40;c == '$'&#41;                     n++;            &#125; while &#40;c != EOF&#41;;            fclose &#40;p&#41;;            printf &#40;&quot;%d\n&quot;, n&#41;;        &#125;        return 0;    &#125;
A. Count of ‘$’ symbol
B. Error opening file
C. Any of the mentioned
D. None of the mentioned
Answer:A
#include &lt;stdio.h&gt;    int main &#40;&#41;    &#123;        FILE * p;        int c;        int n = 0;        p = fopen &#40;&quot;myfile.txt&quot;, &quot;r&quot;&#41;;        if &#40;p == NULL&#41;             perror &#40;&quot;Error opening file&quot;&#41;;        else        &#123;            do &#123;                c = getc &#40;p&#41;;                if &#40;c == '$'&#41;                     n++;            &#125; while &#40;c != EOF&#41;;            fclose &#40;p&#41;;            printf &#40;&quot;%d\n&quot;, n&#41;;        &#125;        return 0;    &#125;
A. Count of ‘$’ symbol B. Error opening file C. Any of the mentioned D. None of the mentioned
Explanation: Any one is possible – Either the file doesn’t exist or If exist, it will print the total number of ‘$’ character.