What is a pointer?
Special variable which is used to hold address of some location rather than value.
To differentiate such variables from general variables use indirection operator *
The pointer variable can hold address of defined type.
Syntax
datatype *ptrname;
Example
char *a;
int *b;
float *c;
void *d;
To differentiate such variables from general variables use indirection operator *
The pointer variable can hold address of defined type.
Syntax
datatype *ptrname;
Example
char *a;
int *b;
float *c;
void *d;
Comments
Post a Comment