EECS 183 Lecture Notes - Lecture 11: Array Data Structure, Compile Time

106 views3 pages
EECS 183 Full Course Notes
1
EECS 183 Full Course Notes
Verified Note
1 document

Document Summary

Parameters name new storage locations and the original variable remains unchanged. Dealing with something very large in memory. We want to alter the original variable. &" means address of variable is passed. Pass by value: new storage created for parameter. Pass by reference: parameter references the same storage location as the argument variable. No new storage is created for pass-by-reference parameter. Multiple values may be passed back in effect. Can be variable, constant, or any other expression. Must have a named storage location (e. g. variable) An array is a systematic arrangement of similar objects. An array is a collection of items of the same data type stored consecutively in memory under one name. A string is also a collection of values. Arrays are excellent for storing and processing a sequence of values. [0] through [4] is size of 5 elements. Array size must be known at compile time. Array size must be a constant integer value.

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