The printf() returns the number of characters sent to the standard output device……
<code>
#include<stdio.h>
main()
{
int i;
int a = 10;
printf(“%d”,a);
printf(“%d”,printf(“%d%d%d”,a,a,a));
}
</code>
OUTPUT:
10 10 10 6
EXPLANATION :
The inner printf function gets executed first and prints 10 10 10.Then the outer function is executed which returns 6 because of the 3 10s that are printed which is equal to 6 characters
Advertisement
good one…