CPP

Types of Variables

int x=6; //Ordinary Variable

int *p;  //Pointer Variable
p = &x;

int &y=x; //Reference Variable
y++;
cout << x; //7

Reference Varible