PPS Experiment8ab
PPS Experiment8ab
PPS Experiment8ab
EXPERIMENT-8A
Pointers :
- A pointer is a variable that stores the address of another variable. Unlike other variables
that hold values of a certain type, pointer holds the address of a variable. For example,
an integer variable holds (or you can say stores) an integer value, however an integer
pointer holds the address of a integer variable.
- Pointers are symbolic representation of addresses.
Syntax:
datatype *var_name;
int *ptr; //ptr can point to an address which holds int data.
Output:
Output :
Accessing values of Array num using pointer pnum.
24
34
12
44
56
17