Computer Science, asked by bisht7581, 6 months ago

distinguish between conditional operator and conditional statement​

Answers

Answered by rishiramanuja
1

Answer:

The if statement doesn't yield a value, so the statements in the "then" and "else" parts don't need to be type compatible in any way. The conditional operator yields a value, and therefore both parts must be type compatible in some way in order for the compiler to determine the type of the expression.

Explanation:

Similar questions