hi,
First let me post a code here to make my question clear.
1 2 3 4 5 6 7 8 9 10 11
#include <iostream>
usingnamespace std;
int main()
{
unsignedint *ptr;
int val = 150;
ptr = &val;
cout << "pointer location is: " << ptr <<endl;
}
The code above displays a hex address pointed by the pointer, "otr". But for my code i wanted it to look like it is pointing from location 0 to 150, without changing the actual value of the pointer "ptr". Is there a way that i can achieve this?