0

Can any one explain getchar (), gets (), scanf (), in Layman language?

Beginner troubles...

4th Nov 2019, 8:33 AM
shridhar w
shridhar w - avatar
2 Answers
+ 3
getchar() can accept only a single character, gets() can accept a string whereas scanf() can accept char, int, double, float etc. from the user.
4th Nov 2019, 8:58 AM
Avinesh
Avinesh - avatar
+ 3
they're are used to get input from the user which is inputed through the keyboard
4th Nov 2019, 8:53 AM
✳AsterisK✳
✳AsterisK✳ - avatar