C-17-Q052mediumsingle_mcq
The default branch ("It is zero") is reached only when:
The default branch ("It is zero") is reached only when:
- a
num > 0 - b
num < 0 - cBoth
num > 0andnum < 0are false (i.e.num == 0) - dAlways
ব্যাখ্যা
The else ("It is zero") runs only after both num > 0 and num < 0 fail, which can happen only when . It is the default reached when no comparison succeeds.