Sunday, December 28, 2008

What is the output of following programme ?

main()
{
float b=7.7;
char a='7';
if('7'>a)
printf("this world is good and ");
else printf("not so bad after all ");
if(7.7>b)
printf("this world is good ");
else printf("not so bad after all");
}

a. not so bad after all not so bad after all
b. this world is good and this world is good
c. this world is good and not so bad after all
d. not so bad after all this world is good


1 comment:

Unknown said...

why??
my mail : ateen00@yahoo.com