C User Input
User Input means to feed some data into a program. An input can be given in the form of a file or from the command line. C programming provides a set of built-in functions to read the given input and feed it to the program as per requirement. To get user input, you can use the scanf() function:
User Output means to display some data on screen, printer, or in any file. C programming provides a set of built-in functions to output the data on the computer screen as well as to save it in text or binary files. To get user output, you can use the printf() function:
The scanf() function takes two arguments: the format specifier of the variable and the reference operator which stores the memory address of the variable.