FILE * f = fopen ('FL.txt', 'r');
int n = 7; fprintf (f, '% d', n);
- The code causes an error
- The code is not error
- This code will write 7 to the 'FL.txt' file.
- This code will read a value from file 'FL.txt' into variable n
Programming is a discipline that attracts many young people interested. Not only that job opportunities after graduation with this job are extremely open. So, if you love programming, you should not ignore the following quiz series of Network Administrator.
FILE * f = fopen ('FL.txt', 'r');
int n = 7; fprintf (f, '% d', n);
f1 = fopen ('source', 'rt'); f2 = fopen ('TARGET', 'wt'); while ((c = fgetc (f1))! = EOF) fputc (c, f2);
puts ();
FILE * f;
char ch; f = fopen ('DATA', 'r');
while (! feof (f)) {ch = fgetc (f); printf('%c',ch);}; printf ('% c', ch);}; fclose (f);