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;



Comments

Popular posts from this blog

What is template?

Can we access private members of an instance?

What are wrapper classes in Java?