Q.

What will be output if you will compile and execute the following c code? #include<stdio.h> int main(){
float a=5.2;
if(a==5.2)
printf("Equal");
else if(a<5.2)
printf("Less than");
else
printf("Greater than"); return 0;
}

A. equal
B. less than
C. greater than
D. compiler error
Answer» B. less than
1.7k
0
Do you find this helpful?
11

Discussion

No comments yet

Related MCQs