In C++, if return statement is written in a non-void function without any specified value, what will be return value of the function?

Options
- undefined
- 1
- 0
- -1


CORRECT ANSWER : undefined

Discussion Board
C++ - Non-Void Function

In C++ if return statement is written in a non-void function without any specified value, it returns undefined value of the function.

Prajakta Pandit 01-30-2017 12:12 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement