C++ · Functions

return, cout and void

Printing a result and returning it look alike on the screen, but only a returned value can be used by the calling code.