What is array in C++ with example?

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];

Sizin İçin Seçtik  What is an array of objects C++?

Leave a Reply

Your email address will not be published. Required fields are marked *