InterviewSolution
| 1. |
What do you mean by subscript? |
|
Answer» To gain access to a single element within the array, a subscript is used. A subscript may be a numeric constant or an integer-valued variable, is enclosed in parentheses which identify the position of a given element in the array. For example, the first element of array TEST (containing the value 15) is referred to as TEST(0J. The second test score is as TEST[1], the third test score is as TEST[2], and so on. Therefore, the following statements are true: TEST[0] = 15 Subscripts are numbers that come after a symbol and below. For your reference: A3, B3 etc. |
|