Discussion :: Functions
-
Point out the error in the program
#include
A.
Error: Prototype declaration |
B.
No error |
C.
Error: return statement cannot be used with conditional operators |
D.
None of above |
Answer : Option C
Explanation :
In a ternary operator, we cannot use the return statement. The ternary operator requires expressions but not code.
Be The First To Comment