Hey, I've been playing around with C++ for a few weeks however I seem to be doing something wrong with pointers still.
I wanted to see if it did actually store the data correctly in both the original integer and the pointer however it seems to only store the input in the pointer and the age simply displays a random big number. Could anyone 'point' me in the right direction here
using namespace std;
*data &= age;
cout<<"How old are you?\n";
cout<<"you are " <<*data<< " years old!";
cout<<"I repeat you are " <<age<< " years old!!";