Monday, April 26, 2010

Predict the Output:

main()
{
float me = 1.1;
double you = 1.1;
if(me==you)
printf("shark selva");
else
printf("Matrix Developer");
}



shark selva
Matrix Developer


Answer:
Matrix Developer
because the of float and doubles are different. if condition is false.

2 comments:

I need u to be at the point about programming and not the posting user.

Post a Comment