Explain pointer Array with example.
(1) An array is called pointer array, if each element of that array is a pointer.
(2) The variable is called as pointer variable, if it points to another variable i.e., it contains the memory address of other variable.
(3) Consider an organization, which divides its employee list into four groups, depending on certain conditions. Following figure shows the list of 4 groups. There are 15 employees and groups contain 2, 5, 4 and 4 employees respectively as
|Group 1||Group 2||Group 3||Group 4|