printf function returns an integer. were the integer is number of characters it had printed using that printf statement..
Eg:
void main()
{
int i;
i= printf("hai");
}
In the above program i will have a value 3 after the execution of the printf.
What printf function returns in C?
it prints the word you would write in () brackets
dont forget to put /n in the end of the statment
ask any computer related problem here which is a open house resource form
http://airtel-broadband.com/webjockey/cl...
Reply:On success, the total number of characters printed is returned.
On error, a negative number is returned.
Reply:Number of characters output, or EOF if there was a problem.
Never checked it though.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment