1)what different between int &p= n and int *q = &n in this code they do same thing. 2)what do & exactly(maybe return addres variable or something different?)
void foo(int &p){
p++;
}
int main(){
int n = 5;
foo(n);
int &p= n;
int *q = &n;
cout << *q;
cout << p;
}