COSC 1337 - Programming Fundamentals II
Bob Comer, Professor of Computer Studies
Example C++ Programs
Chapter 6 - Functions
Topics covered |
Program |
Data |
Getting a result from a function There are two mechanisms in C++ for getting a result back from a function. These are:
These mechanisms are independent of each other. They can be used together in the same functions (for example, a function that returns one result using the function return value and passing another result through a reference parameter). But in many cases it is best to avoid mixing these mechanisms in one function. So for now I would recommend that you follow these suggestions:
|
|
Return to Programming Fundamentals II Home Page
Copyright: © 2014 by the Austin Community College
Department of Computer Studies. All rights reserved.
Comments to: Bob Comer
Last updated: February 14, 2014