click below
click below
Normal Size Small Size show me how
1and 2-D Arrays
Arrays - JCreator - AP Computer Science
Question | Answer |
---|---|
Data Structure | any data type that can store, or consists of one or more values. |
Array | Data structure with one or more elements of the same type. |
Every element of an array has a unique location called the... | index or subscript |
Every element in an array is accessed through its... | index |
By default, every element of an array of integers is set to... | zero |
The size (number of elements) of any array is obtained by using the length property. What is the length property? | int size = ages.length; |
2D Array | data structure which consists of rows and columns like a matrix. |
The size of a 2D array is obtained by using the length of the rows and the length of columns. What is the formula (if the name of the array is month)? | int rSize = month.length; | int cSize = month.length[0]; |