|
-
March 11th, 2008, 11:37 AM
#5
Re: Help with functions
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|