Why does reading a file with while ((c = getc(file)) != EOF) work on some platforms?
Why does reading a file with while ((c = getc(file)) != EOF) work on some platforms?
I hope you found a solution that worked for you :)
The Content is licensed under (https://meta.stackexchange.com/help/licensing) CC BY-SA.
Attention! This video does always use the same license as the source!
Thanks to all those great people for their contributions!
(stackoverflow.com/users/11304107/cdalitz)cdalitz
(stackoverflow.com/users/2877241/vlad-from-moscow)Vlad from Moscow
(stackoverflow.com/users/524368/datenwolf)datenwolf
A special thanks goes out to the (stackoverflow.com/questions/79293640/why-does-reading-a-file-with-while-c-getcfile-eof-work-on-some-platfo)Stackexchange community
I wish you all a wonderful day! Stay safe :)
If anything is off, please write me at peter D.O.T schneider A.T ois42.de
eof while-loop char integer-promotion c