Podcast
Questions and Answers
What does declaring an array involve specifying?
What does declaring an array involve specifying?
- Data type, index, size
- Data type, name, size (correct)
- Data type, memory location, size
- Data type, value, size
How are the elements of an array referenced?
How are the elements of an array referenced?
- By a value
- By an index (correct)
- By a memory location
- By a pointer
Where are the elements of an array stored?
Where are the elements of an array stored?
- Separate memory locations
- Consecutive memory locations (correct)
- Dynamically allocated memory
- Random memory locations