Multiple choice technology programming languages

int i=3, j=4; if( i==3 || j++ ) { printf("%d\n",j); } This will print: 5

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In the expression i==3 || j++, the left operand of the logical OR operator (i==3) evaluates to true. Due to short-circuit evaluation, the right operand (j++) is never evaluated, so j remains 4. Thus, printing j will output 4, making the statement that it prints 5 false.