Please i need explanation on what EOF is and how it is used. Thanks in advance | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 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); }
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