Loading video...
Functions, Part 1
- Functions increase readability and maintainability by allowing the programmer to divide the work into smaller, easily understood modules.
- Each function must have a prototype that describes the function interface, including its return value and parameter types. The compiler uses this to verify correct usage.
- Each function must have a definition that contains the work performed by the function. Its interface must match the prototype.
- The function is used when code calls the function, providing an argument for each parameter, and uses the result
- The function returns a single value and can be used anywhere an expression value is used
- Here are links to more information about C++ functions: http://www.cplusplus.com/doc/tutorial/functions/ http://www.cplusplus.com/doc/tutorial/functions2/
Functions, Part 1
Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.


































Start Learning Now
Our free lessons will get you started (Flash® 10 required).
Sign up for Educator.comGet immediate access to our entire library.
Features Overview