Wednesday, March 05, 2008
Array in C++
An array is a series of elements of the same type placed in nearby memory locations that can be independently referenced by adding an index to a unique identifier.
That means that, for instance, we can store 5 values of type int in an array with no having to speak out 5 different variables, each one with a different identifier. In place of that, using an array we can store 5 different values of the same type, int for instance, with a unique identifier.
That means that, for instance, we can store 5 values of type int in an array with no having to speak out 5 different variables, each one with a different identifier. In place of that, using an array we can store 5 different values of the same type, int for instance, with a unique identifier.