• In a program when programmer needs several variables of same type then instead of defining several variables, it is possible to define a single variable with several subscripts.
• This subscripted variable is called array.
• Array is defined as a finite set of homogeneous data elements stored in successive memory locations.
• Array may have one or many dimensions.
• If there is only one subscript then it is called single subscripted variable or one dimensional array and it represent one dimensional matrix i.e. either row matrix or column matrix.
• If there are two subscripts then it is called double subscripted variable or two-dimensional array and it represent two dimensional matrix.
• This subscripted variable is called array.
• Array is defined as a finite set of homogeneous data elements stored in successive memory locations.
• Array may have one or many dimensions.
• If there is only one subscript then it is called single subscripted variable or one dimensional array and it represent one dimensional matrix i.e. either row matrix or column matrix.
• If there are two subscripts then it is called double subscripted variable or two-dimensional array and it represent two dimensional matrix.
No comments:
Post a Comment