Explain printf( ) and scanf( ) functions.
Answers
Answered by
3
# printf and scanf both functions are defined in stdio.h header file which is available in C library.
# printf function is used to print something on output screen. It may be single character, integer value, floating point value, strings, double value, octal value and hexadecimal value.
# In C programming language, scanf() function is used to read character, string, numeric data from keyboard
Answered by
2
printf() is used for printing the data enclosed in that brackets.
scanf() is used for scanning the data and storing in memory.
Similar questions