+3 votes
in Mathematics by kratos

The second expression (j – k) in the following expression will be evaluated

(i + 5) && (j – k)

(A) if expression (i + 5) is true.

(B) if expression (i + 5) is false.

(C) irrespective of whether (i + 5) is true or false.

(D) will not be evaluated in any case.

1 Answer

+2 votes
by kratos
 
Best answer

Correct option - (A) if expression (i + 5) is true.

Explanation:-

In a compound logical expression combined with &&, the second expression is evaluated only if first is evaluated in true.

...