What are returned by printf(), scanf() functions,if they return anything means what are that?

Showing Answers 1 - 5 of 5 Answers

Poovizhi

  • Aug 17th, 2006
 

Return type of printf() and scanf() is integer. scanf() returns the no.of variables used and printf() returns the total no.of bytes.

  Was this answer useful?  Yes

Venky

  • Mar 3rd, 2007
 

In  general, the return type for both printf nd scanf is integer....

scanf returns no of successful inputs....

printf returns no of succesful outputs....
ie  in case of strings, it refers to no of characters...
    in case of integers, it refers to no of individual digits...
    in case of floats, it refers no of fields used (including the appended zero)...

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions