C scanf() function

C scanf() function:
Using c scanf() function we can read the information from the user.
C scanf() function takes any number of arguments but first argument must be within the double quotes and every argument should separated with comma(,).
When we are working with C scanf() function we need to pass proper format specification only. i.e. what kind of value we need to read same kind of format specifier need to to be used.
When we are working with C scanf() function, arguments list should be provided by ‘&’ symbol because it works with the help of call by address.




printf(“Enter 4 values:”);

Powered by k2schools