What will be the output of the following program on GCC?

		
					

Loading

Choose the correct option.

What will be the output of the following program on GCC?

#include 
int main() {
int a,b;
scanf("%d %d",&a,&b); // a=4 b=5
if(a>b);
printf("If block");
else
printf("else block");
return 0;
}

A. If block
B. else block
C. Compiler error:‘else’ without a previous ‘if’
D. No error, No output

Leave a Comment