When you store data, such as numbers or strings, in a variable, you can store only one chunk of data at a time. If you need to store five different numbers, you have to create five different variables. If you need to store 100 different numbers, you have to create 100 different variables. Clearly, having to create a new variable to store each new chunk of data is clumsy and inefficient, so programming languages offer a solution called an array.
KeywordsProgramming Language Array Element Class Reference Index Position Array Index
Unable to display preview. Download preview PDF.