Microsoft
Software
Hardware
Network
Question : Can pointers be right shifted and have bitwise AND performed on them?
I don't think following experssions are allowed:
some_pointer >> 8
some_pointer & 0x00FF
Please confirm that pointers cannot be right shifted and bitwise ANded.
Answer : Can pointers be right shifted and have bitwise AND performed on them?
Hi naseeam,
I don't know why you'd want to shift a pointer, but you can if you recast it to an integer type.
void *ptr
ptr = some_value ();
ptr = (void*) (((int)ptr) >> 8);
Kent
Random Solutions
Aside from Flowplayer, recommend a good video/audio player for the web?
How to use the processing core library to create a PIMAGE in Java Netbeans?
I frequently get BSOD with error message DRIVER_IRQL-NOT_LESS_OR_EQ
UAL on windows vista/7
Download conexant fusion 878a drivers for Windows 7
SonicWall, VPN Access Rule
Google Apps Gmail and legacy MS Exchange (SBS) 2003 Synchronisation
Need help resolving a issue with the home folder not being mapped to client from 2003 DC
HP Mini 1000 - Unable to boot
PHP Sessions
New Build (ASUS P7H55D-M EVO) not booting properly, can't install OS