
9-24
Computer Programming with C
Explanation:
e logic of the program is the same as the previous one. Here, instead of starting from the
base address of the array, the address of the last element of the array is selected rst. Using
the for loop, the addresses are read in the reverse order and their contents are copied to the
destination array arr2[].
9.10 POINTERS AND TWO-DIMENSIONAL ARRAYS
A matrix can represent two-dimensional elements of an array. Here, the rst argument is row number
and second the column number. To display the address of 1
st
element of two-dimensional array using a
pointer, it is essential to have ‘&’ operator as prex ...