33) C PROGRAM TO ACCESS ARRAY ELEMENT USING POINTER
LOGIC:- For this program you have a knowledge about array,pointers and relationship between array and pointers(i.e array of pointer and pointer to an array).
EXAMPLE:-
NOTE:- Here arr is the array and arr is also the pointer.arr[0] is equivalent to *arr,and &arr[0] is equivalent to arr and so on...
LOGIC:- For this program you have a knowledge about array,pointers and relationship between array and pointers(i.e array of pointer and pointer to an array).
EXAMPLE:-
NOTE:- Here arr is the array and arr is also the pointer.arr[0] is equivalent to *arr,and &arr[0] is equivalent to arr and so on...
Comments
Post a Comment