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

Computers

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

Download to view full explanation
The code will prompt the user to enter a filename, then open the file and print out the content of the file until it reaches the end of the...
Solve any homework question FREE with our app, NO PAYMENT required!