Now, the marks of 10 students can be stored in a single data structure and we do not need 10 variables to store marks of 10 students. The advantage here is that with one variable name we can access so many data. This reduces the complexity in the program and makes the program more user friendly. Also, if we use more variables, then the program becomes lengthy and it requires more space to store more variables. So the problem of memory gets solved when we use arrays.
Now, the marks of 10 students can be stored in a single data