Data Structures Flashcards
1
Q
One-Dimensional Arrays are structured so they?
A
Store consecutive array elements of the same type in a contiguous block of memory
2
Q
Multidimensional Arrays are structured so they?
A
Use 2 or more indices to access individual array elements
Most commonly using row major order
3
Q
Structures do what?
A
Contain fields, which may be of different types
Are allocated in a single block of memory on the stack
4
Q
A Nested Structure is?
A
A structure which contains a field whose type is another structure