CIS 1057 Chapter Notes - Chapter 5: Local Variable

24 views3 pages

Document Summary

Order of execution of function subprograms and main function. Compiler processes function prototypes before main function. Compiler translates a function call as a transfer of control to the function. Compiler reaches the end of the function and inserts transfer of control to main function. Compiler allocates memory for function when called, and then releases that memory when function returns control to caller function. Makes it easier to apportion tasks among a team. A programming technique in which a main function consists of a sequence of function calls and each function is implemented separately. Reuse of function subprograms, which decreases length of program and the likelihood of errors. Functions can also be reused in other programs. Arguments that carry information into the function. Arguments that return results from the function. Arguments are important because they allow functions to process different data at each call. The information passed into the function and substituted for the formal parameter.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents