int x, y, *p = &x, *q = &y;
x = 35 ;
y = 46;
*p = 78;
cout << x << " " << y << endl;
cout << *p << " " << *q << endl;
the solution is 35 78
78 78
i wonder why "y" is 78 , if so why "x" is not affected?
i am confused with the * and & <----
explain please.
thanks