How the pointer-array helps the faster access of the data in the array1 min read

In this article we are going to learn of about the pointer-array concept in c programming.

There may be a situation when we want to maintain an array, which can store pointers to an int or char or any other data type available. Following is the declaration of an array of pointers to an integer.

Today we are going to reverse the pointer array in-place which is faster than working with the value variables.

Input and output for the above program is as follows:

Enter n: 5

Enter 5 numbers: 6 7 1 3 8

Reversed array elements are: 8 3 1 7 6

Take your time to comment on this article.

Leave a Comment