My Herb Schildt book on C++ says: \"... In C++, if a function is declared as returning a value, it must return a value.\" However, if I write a function wit
Yes, it must return a value.
Flowing off the end of a function is equivalent to a return with no value; this results in undefined behavior in a value-returning function.
This question will bring more light to the subject