InterviewSolution
Saved Bookmarks
| 1. |
What are the rules used while writing subscripts? |
|
Answer» Rules for subscripts are: (i) each subscript must be an unsigned positive integer constant or an expression (ii) subscript of a subscript is not permitted (iii) maximum subscript appearing in a program for a subscripted variable should not exceed the declared one (iv) subscript value ranges from 0 to one less than the maximum size. If an array has three elements then subscript can be 0,1,2. |
|