This is the place where u can think

Pages

Monday, July 12, 2010

is it printf

#include<stdio.h>
main()
{
printf("length=%d",printf("dude!"));
}

output:dude!lenght=5

hint:here the second printf returns the text length given in it

Printf hidden

#include<stdio.h>
main()
{
printf("welcome here",printf("dude!"));
}

output:dude!welcome here

Simple program using printf()

Lets us see the simple program below and analyze the outputs........

#include < stdio.h> 
main()
{
printf("hello! welcome ");
}


output:hello! welcome