Mastery about c++ arrays!

An array is very cool way to store information and a cimple way.

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

My video:

That means that, for example, five values of type int can be declared as an array without having to declare 5 different variables (each with its own identifier). Instead, using an array, the five int values are stored in contiguous memory locations, and all five can be accessed using the same identifier, with the proper index.

In simple words, an array is information stored in such a way that you can access each part of your information using a name and an index number.

 

CC BY 4.0 Mastery 24 by Octavio Rojas is licensed under a Creative Commons Attribution 4.0 International License.