cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
what is a return value
what is a return value
Oct 24, 2014 at 5:23pm UTC
xxgixxx
(41)
hello, i want to know what is a return value in a function!
please i don 't want complicated words i just want a simple definition of the return value in a function, an example, and WHY SHOULD I USE A RETURN VALUE IN A FUNCTION. Thank you !
Oct 24, 2014 at 5:29pm UTC
keskiverto
(10402)
See
http://www.cplusplus.com/reference/algorithm/max/
std::max is a function. It returns a value that is the largest of its input parameters.
The return value is the result of a computation.
All functions do not return values.
Oct 24, 2014 at 6:33pm UTC
cnoeval
(643)
If you need a definition just look it up! For instance, the tutorial on this site explains it well:
http://www.cplusplus.com/doc/tutorial/functions/
Topic archived. No new replies allowed.