Array is collection of variables having the same data type. Suppose, you need to read marks of 10 students and print them. For this problem, you can declare 10 different variables and can solve the marks of the students in that. But if you are using Array to solve this problem, you can do it very easily then previous solution. Here, we have to declare an array which have the ability to store the marks of students which is having the same data type i.e. integer.