Pointer to an Array:-
pointer to an array is also known as array pointer.It means access the array using pointer.such as insert element ,find element etc.EXAMPLE:-
NOTE:- *b+0 is the address of 0th element,*b+1 is the address of 1st element and so on.so to obtain the value at that address again * is used that is *(*b+0) is the value of 0th element and so on..
Array of pointer:-
It is an array of pointer variable.It is also known as pointer array.Means an array is created which is the pointer.
Syntax:- data type *pointer name [array size] ;
Note:- if we write pointer name inside () brackets then it become pointer to an array.
Declaration:- int *ptr[5];
EXAMPLE:-
"""I HOPE YOU UNDERSTAND"""
Comments
Post a Comment