getchar( )
scanf( )
getchar( ) is an unformatted input function.
scanf is a formatted input function.
It is used to accept only characters from the keyboard in a fixed
format.
It is used to accept any data from the keyboard.
Only a single character is input in this function.
Any type of data (such as integer, character, float, etc.) can be
entered using this function.
A format string is not placed in this function.
Format strings are placed.
No arguments are passed to this function.
A number of arguments are passed here.
Do'stlaringiz bilan baham: |