0
Please i need explanation on what EOF is and how it is used. Thanks in advance
4 Answers
+ 2
it means end of file, it's mostly use when reading from a file and SoloLearn gat a tutorial for that
oops it seem SoloLearn gat no explanation on that, let me create one
long nc=0;
while (getchar() != EOF)
++nc;
printf("%ld\n", nc);
}
0
Is this a question for your schoolwork? 🤨
0
No
0
It stands for "End Of File". It is used to read from a file