0
I'm learning C and I want to know how the getchar and gets functions operate..
7 Réponses
+ 1
Martin Taylor good to know. The sololearn course on C uses it.
0
Getchar gets only one character. Gets gets string(array of chars) to the moment you press space
edit
gets get string with spaces Mackleode
0
Martin Taylor, if I should not use gets which function should I use scanf or fgets.
0
You should use fgets when you want string with spaces else use scanf