#include <stdio.h> 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
d) ADC
What will be the output of the following C++ code in the text file?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following C++ code in the text file?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!