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
Windows 7 WGA says my legitimate copy is NOT GENUINE
SharePoint Number Search
WMIC Get Hard drive serial number
WINS problem
couple of things missing from Exchange 2010?
Exchange 2010 mailbox move and activesync issue
Join query give duplicate value
Script to email newly created computers. Need to add groups & users accounts also.
WINDOWS XP PRO MEDIA EDITION RECOVERY
Netgear WPS and old computers