char characterA = 'a';
cout<<"Address of characterA: "<< static_cast<void *>(&characterA) <<endl;
Will display Memory Location on screen. How do I save that memory location into double or int variable ?
int memory_location = static_cast<void *>(&characterA) // <~~~ no work
~ thanks