0

Please i need explanation on what EOF is and how it is used. Thanks in advance

4th May 2019, 8:38 PM
dgidi
dgidi - avatar
4 Antworten
+ 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); }
4th May 2019, 9:01 PM
✳AsterisK✳
✳AsterisK✳ - avatar
0
Is this a question for your schoolwork? 🤨
4th May 2019, 9:17 PM
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘
Decimis † 𝕯𝖊𝖈𝖎𝖒𝖎𝖘 - avatar
0
No
4th May 2019, 9:18 PM
dgidi
dgidi - avatar
0
It stands for "End Of File". It is used to read from a file
5th May 2019, 4:19 AM
Hothouseinwar Polik
Hothouseinwar Polik - avatar