What is the difference(if any??) on those 3:
int* p;
int * p;
int *p;
is there any difference?
I tried this
and they all output 5, so, I'm curious.Code:int* p1; int n1 = 5; p1 = &n1; cout << *p1 << endl; int *p2; int n2 = 5; p2 = &n2; cout << *p2 << endl; int * p3; int n3 = 5; p3 = &n3; cout << *p3 << endl;
Dag