In C++, an array is a variable that can store multiple values of the same type . For example, Suppose a class has 27 students, and we need to store the grades of all of them. Instead of creating 27 separate variables, we can simply create an array: double grade[27];