Pls someone explain how does getchar() work i am not understanding | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Pls someone explain how does getchar() work i am not understanding

13th Jun 2019, 7:10 AM
Akash C R
Akash C R - avatar
3 Answers
+ 15
Akash C R Please, Keep going with C-tutorial!šŸ‘ https://www.sololearn.com/learn/C/2936/
13th Jun 2019, 8:07 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 7
getchar() reads a single character of input and returns that character as the value of theĀ function. If thereĀ isĀ an error reading the character, or if the end of inputĀ isĀ reached,Ā getchar() returns a special value, represented by "EOF". https://stackoverflow.com/questions/3676796/how-does-getchar-work
13th Jun 2019, 7:16 AM
Abhivarshini Maddala
Abhivarshini Maddala - avatar
0
But how to give input i am not understanding pls help me out
13th Jun 2019, 7:18 AM
Akash C R
Akash C R - avatar