Multiple choice

How many values can be returned by a function?

  1. 1

  2. 0

  3. Multiple

  4. They don't return any value

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In most programming languages including C/C++, functions can only return exactly one value. While there are workarounds like returning pointers/arrays or using reference parameters, the formal return statement itself returns only one value. This is a fundamental limitation.