S
satyspiceoflife
int x,a;
a=10
x=&a;
cout<<*x; //using dereference operator
this will print value 10
the other case is
int *x; //x is a pointer variable
int a=10;
x=&a;
cout<<*x; //printing value 10
what is the difference between these two cases?
a=10
x=&a;
cout<<*x; //using dereference operator
this will print value 10
the other case is
int *x; //x is a pointer variable
int a=10;
x=&a;
cout<<*x; //printing value 10
what is the difference between these two cases?