Skip to main content

Posts

Showing posts with the label 3*3 matrixes

Multi-dimensional arrays

                  Multi-dimensional arrays are those which have more than one dimensions. Multi-dimensional arrays are defined in much the same manner as one dimensional array, except that a separate pair of square brackets is required for each subscript. Thus, two dimensional arrays will require two pairs of square brackets; three dimensional arrays will require three pairs of square brackets and so on. The two dimensional array is also called matrix. Multi-dimensional array can be defined as following    storage_class  data_type  array_name[expression1] [expression2] ...[expression n];                   Here, expression1, expression2…..expression n are positive valued integer expressions that indicate the number of array elements associated with each subscript. An m*n two dimensional array can be thought as tables of values having m rows and n columns.  An example  int X[3][3] can be shown as follows Col 1 Col 2 Col 3 Row