What will be the final values of i and j in the following C code?
#include int x = 0;int f(){ if (x == 0) return x + 1; else return x - 1;}int g(){ return x++;}int main(){ int i = (f() + g()) || g(); int j = g() || (f() + g());}

What will be the final values of i and j in the following C code?

#include <stdio.h>int x = 0;int f(){ if (x == 0) return x + 1; else return x - 1;}int g(){ return x++;}int main(){ int i = (f() + g()) || g(); int j = g() || (f() + g());}
Correct Answer i and j value are undefined

Related Questions

Comment on the following 2 C programs.
#include  //Program 1int main(){ int a; int b; int c;}#include  //Program 2int main(){ int a; { int b; } { int c; }}
What is the difference between the following 2 C codes?
#include  //Program 1int main(){ int d, a = 1, b = 2; d = a++ + ++b; printf("%d %d %d", d, a, b);}

#include  //Program 2int main(){ int d, a = 1, b = 2; d = a++ +++b; printf("%d %d %d", d, a, b);}