C++:Accessing an Array
You access an array using the square bracket notation.
The first element of array x is x
You can initialise the array to a specific list of values:
The last element of array x is x[sizeof x/sizeof *x -1]
The length of the array is
sizeof x/sizeof *x
You divide the size of the whole array *x is the first element of the array, every element will have the same size.
Out of Bounds
C++ will not check array bounds. If you try to read past the end of an array you will get junk.