We have to declare 50 variables individually to store total marks of 50 students. It is a laborious work.
Hence we use array, it is an efficient way to declare 50 variables. With a single variable name we can store multiple elements.
eg: int mark[50].
Here we can store 50 marks.
The first mark is in mark[0], second is in mark[1]…. etc the fiftieth mark is in mark[49],