Q:

C Example for nested \"printf\"

0

C Example for nested "printf"

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Consider the given example:

#include <stdio.h>

int main()
{

	printf("\t%d",printf("includehelp"));

	return (0);

}

Output

includehelp	11

It prints "includehelp 11". Word 'Includehelp' prints, because it is written under printf and but first printf is printing the number of letters counted in the word 'includehelp' i.e., so it is 'includehelp 11'.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now