Array basics Arrays are useful critters because they can be used in many ways. Arrays are essentially a way to store many values under the same name. You can make an array out of any data-type including structures and classes. It is almost like having a group of variables side by side.
Lets look at the syntax for declaring an array.
To access a specific part element of the array, you merely put the array name and, in brackets, an index number. This corresponds to a specific element of the array. The one trick is that the first index number, and thus the first element, is zero, and the last is the number of elements minus one. 0-99 in a 100 element array, for example. Then you can receive input into it it from the user, and if the user types in a long string, it will go in the array. There is another lesson on the uses of string.h, so its not necessary to discuss here.