126k views
5 votes
A value-returning function is

User Kah Tang
by
3.4k points

1 Answer

4 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 Uchuujin
by
3.3k points