Multiple printf() and scanf() in C
Printf() function :
printf() function return the number of characters printed.
It is a library function in C.
As an example :
After run :
Can you say how is it?
At first, it prints the value with a space character.That means there are 5 characters.So 2nd or middle printf printed 5.Then 1st printf printed 1 because in last there was 1 character.
Scanf() function :
scanf() function return the number of input items successfully matched and assigned.
It is also library function in C.You should try the scanf() by yourself.
printf() function return the number of characters printed.
It is a library function in C.
As an example :
Can you say what is the answer?
After run :
Can you say how is it?
At first, it prints the value with a space character.That means there are 5 characters.So 2nd or middle printf printed 5.Then 1st printf printed 1 because in last there was 1 character.
Scanf() function :
scanf() function return the number of input items successfully matched and assigned.
It is also library function in C.You should try the scanf() by yourself.
No comments