C++ Arrays Practice Questions

1. What is an array?

An array is a series of elements of the same type placed in contigous memory locations that can be referenced by adding an index to a unique identifier.

2. How do you initialize a c++ array?

type: a valid type such as int or float

name: valid identifier

elements: always enclosed in square brackets [ ] and specifies the length of the array in terms of the number of elements

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store