Will the getchar() function get only the first character if the user entres a string? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Will the getchar() function get only the first character if the user entres a string?

Will the getchar() function get only the first character if the user enters a string?

29th Dec 2018, 3:57 PM
Konybud
Konybud - avatar
3 Answers
+ 1
How about you try that in Playground?
29th Dec 2018, 4:18 PM
HonFu
HonFu - avatar
+ 1
Ok
29th Dec 2018, 4:19 PM
Konybud
Konybud - avatar
+ 1
I will do tomorrow because I need to sleep now...
29th Dec 2018, 4:20 PM
Konybud
Konybud - avatar