This approach has three major limitations: For example, if our application analyzes student grades, we can use a separate variable for each student's grade, such as englishGrade1, englishGrade2, etc. It is possible to use individual variables to store each of our data items. Similarly, an array may consist of a student's grades for a class each element of the array is a single grade. For example, an array may consist of the number of students in each grade in a grammar school each element of the array is the number of students in a single grade. An array is a set of values, which are termed elements, that are logically related to each other.
0 Comments
Leave a Reply. |