First page Back Continue Last page Overview Image
C programming language
User Input
In C programming language, scanf is a function that stands for Scan Formatted String. It reads data from stdin (standard input stream i.e. usually keyboard) and then writes the result into the given arguments.
- It accepts character, string, and numeric data from the user using standard input.
- Scanf also uses format specifiers like printf. ( %i , %f , %c..,ect)