198,577 views
6 votes
6 votes
A value-returning function is

User Mkkekkonen
by
3.2k points

1 Answer

13 votes
13 votes

Answer:

A function that returns a value is called a value-returning function. A function is value-returning if the return type is anything other than void . A value-returning function must return a value of that type (using a return statement), otherwise undefined behavior will result. Related content.

User Martin Drautzburg
by
2.9k points