Important MCQ

Output? if (-1) cout << "Neg";

Q.Output? if (-1) cout << "Neg";

A) Nothing
B) Neg
C) Error
D) -1
Correct Answer:
Option B
Detailed Explanation:
Any non-zero value (even negative) is true.