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

Loading

โœช Choose the correct option.

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

#include  
int fun(int);
int i;
int main(){
int j;
for(;;){
if(j=fun(i)){
printf("j=%d ",j);
}
else{
break;
}
}
return 0;
}
int fun(int x){
static int a=2;
a--;
return (a-x);
}

A. j=1
B. j=0
C. j=2
D. Compiler Error