COSC-051 Study Guide - Final Guide: Default Constructor, Member Variable, Function Prototype

144 views10 pages

Document Summary

Function prototype: lets compiler know about a function that will appear later in the program. Eliminates the need to place a function definition before all calls to the function. Arguments: values that are sent into a function. Parameter: special variable that holds a value being passed as an argument into a function. Local variables: variable that are defined inside a function that are local to that function. They are hidden from the statements in other functions; other functions can have separate local variables with the same name the function"s local variables do not persist between function calls. Global variable: a vriable defined outside all functions in a program, including main. Global constant: named constant that is available to every function in a program. Static local variables: if a function is called more than once in a program, the values stored in. Passed by reference: data is passed to a parameter through a reference variable.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents