EOF: How do I provoke it in C

preview_player
Показать описание
I'm trying to terminate a character stream in this character counting program from the K &R book.
Рекомендации по теме
Комментарии
Автор

I just read something at stackoverflow that makes a lot of sense: The EOF is included as a macro in stdio.h, with an int value of-1. My big breakthrough is understanding that this makes more sense with an actual file, where the end-of-file is already determined, as opposed to dynamically entering characters.

goedeck
Автор

Very informing video, and thanks for stopping by my channel too!
hope we can stay connected as you tube buddies... Peace 🤗🤠😄

giftednanointedcrafts
Автор

Do I have to explicitly assign a character like ^D or ^Z in my code?

goedeck