Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

Is return an operator or a function?

10 like 0 dislike
This is too basic I think, but how do both of these work?

return true;   // 1

and

return (true); // 2

Similar: sizeof, exit

My guess:

    If return was a function, 1 would be erroneous.

    So, return should be a unary operator that can also take in brackets... pretty much like unary minus: -5 and -(5), both are okay.

Is that what it is - a unary operator?
asked 2 years ago by biswaskeran (70,430 points)

Your answer

Email me at this address if my answer is selected or commented on:
Privacy: Your email address will only be used for sending these notifications.

0 Answers

Related questions

11 like 0 dislike
2 answers
12 like 0 dislike
1 answer
4 like 0 dislike
1 answer
0 like 0 dislike
0 answers