0
Can I specify a pointer for a variable?
Is there any way i can assign a variable a pointer? something like int num; &num=0x28ff2c;
2 Answers
+ 3
int* num = reinterpret_cast<int*>(0x28ff2c);
NOTE: This can be dangerous if you don't know exactly what you're doing.
+ 2
Thank you!