2-Arrays Flashcards
All arrays consist of contiguous memory locations
True
A specific element in an array is accessed by an index
True
Which of the following are true regarding arrays. Select all that apply.
Sequential Elements
Same data type
Fixed Size
What punctuation is used to declare the explicit size of an array upon declaration when the array is not initialized during declaration?
[]
All arrays have 0 as the index of their first element which is also called the base index
True
If an array is a three-dimensional array, how many sets of square brackets are used to identify each element of the array?
[][][]
Formal parameters as a pointer
void myFunction(int*param)
Formal parameters as a sized array
void myFunction(int param[10])
Formal parameters as an unsized array
void myFunction(int param[])
Which of the following is the only methodology to return an array from a function in the C programming language?
int * myFunction()
The scandalous truth is that C has no arrays — that they are merely cleverly disguised pointers
True