Side-effects. Sometimes side-effects include printing something to the console; in the case of class member methods, they may modify class state. Sometimes they may change the value of a global variable, although this usage is discouraged most of the time.

Also, sometimes values are "returned" simply by modifying parameters passed by reference (or pointer parameters), rather than via explicit returns.