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