+ 3
You can, though I can't see a proper use for it. I wouldn't recommend it either. int *p =(int*) 0x29fee8 Casting pointer to int and back: http://code.sololearn.com/c5tBxVCz7xKD You need to dereference a pointer (with *) to access to the value pointed. int i = 42; int *p = &i; cout << *p << endl; //dereferences p and prints 42
12th Sep 2016, 11:53 AM
Zen
Zen - avatar