+ 2
putchar(variable ) and printf("%c", variable)
What is the difference between putchar() and printf("%c", variable), as both do the same thing.
1 Resposta
+ 4
In this particular case, they do almost the same, except:
- putchar(c) returns the char written.
- printf returns the total number of characters written.
printf is more resource hungry...
:)
https://code.sololearn.com/c455sweP3WyD/?ref=app