In real world programming, you almost never use individual variables only. Arrays are group of variables that can be of any types.
When you have as many as hundreds or thousands of variables or values, you might want to sort them in a specific order. You might also perform searching and modifying frequently to maintain your data.
Array searching and sorting algorithms are discussed in the next chapter, but before that, we need to take a look at functions.