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
Excel 2003 Toolbar is different than Excel 2007 toolbar
VPN split tunneling not working on ASA5510
How to run app on local machine and display results in web page
In Microsoft Office Communicator 2007 R2, the "View Conversation History" is grayed out. How do I enable this so that I can view previous chats?
How can I rotate a video?
How come when I do a copy run start, my config is always gone after a reload???
Hyper-V server 2008 R2
Getting violation of primary key during bulk insert.
Google Analytics
Network issues loading company web-site