option D is wrong ,
correct option is (A)..
code will run properly
code:
#include<stdio.h>
#include<conio.h>
int x=0;
int f();
int g();
void main(){
int i = (f() + g()) || g();
int j = g() || (f() + g());
printf("%d,%d",i ,j);
getch();
}
int f(){
if(x==0)
return x+1;
else
return x-1;
}
int g(){
return x++;
}
There is not single error in code, value of i and j after execution will be 1 ,1. U can check it..