return statement in ternary operator c++

The second and third arguments to the ternary operator are expressions, not statements.

 return a

is a statement

Leave a Comment