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
DD-WRT USB HARD DISK Network Sharing on windows & linux box
E72 - How to make email work without activating data services?
I need to accumulate the values in query
Sharepoint|IIS| Web Application port number
Remove space from textbox automatically
RPC through HTTP keeps prompting for pw on Exchange 2010
I want to make Liberty reserve API
Is exercising in an air conditionedroom a good idea?
SBS 2008 - STOP c00002e2
changing external server name.. do I need to change anything in Outlook