Q912
What will be the output of the following C++ code in the text file? #include int main () FILE * pFile; char c; pFile = fopen("sample.txt", "wt"); for (c = 'A'; c <= 'E'; c++) putc (c, pFile); fclose (pFile); return 0;
A.
ABCD
B.
ABC
C.
ABCDE
AnswerD.
ADC
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board