Google News
logo
C-Language - Interview Questions
What is the use of printf() and scanf() functions ?
printf() function : The printf() function is used for output. It prints the given statement to the console.

Syntax : printf("format string", list of variables);

scanf() function : This function is used to read values using keyboard. It is used for runtime assignment of variables.

Syntax : scanf("format string", list_of_addresses_of_Variables );
Advertisement