How can we put getchar and putchar in practical use? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How can we put getchar and putchar in practical use?

Can you please put specific examples.

24th May 2019, 5:49 AM
Prakash munjewar
Prakash munjewar - avatar
1 Resposta
+ 3
when you need user to input just a char and not a string, getchar comes in handy, and so is the putchar just to print a single char, you can also use the getchar to taking in series of values in an array using it in a loop
24th May 2019, 6:14 AM
āœ³AsterisKāœ³
āœ³AsterisKāœ³ - avatar