Question
What is the output of the code?
#include <stdio.h>
void main() {
FILE *f;
char s;
char *nome;
printf("Filename:");
f-fopen("new.txt""-*);
while((s=fgetch(f))!=EOF) {
printf(4%C",s);
}
fclose (f);
}
Select one:
a.
* Filename:
b.
The file content
C.
The file size
d.
error
17:24
Answer
b. The file content