Q.

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

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

Discussion

No comments yet

Related MCQs