Programming Languages
C
Objective
Mar 08, 2013
What will be output the following c code?
void main()
{
int x=2,y=3;
if(x+y<=5)
printf("True");
else
printf("False");
}
Detailed Explanation
Expression x+y<=5
=> 2+3 <=5
=> 5<=5 is true because 5 is either greater than 5 or equal to 5.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts