Page 1 of 1

What will be the final value of j in the following C code?

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
#include <stdio.h> int main() { int i = 0, j = 0; if (i && (j = i + 10)) //do something ; }
a) 0
b) 10
c) Depends on the compiler
d) Depends on language standard