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
Dock for Mac Laptop
Install .PFX file to personal store - Certificate Authority
Fancybox Jquery Form
Problem connecting Netapp FCP LUN on SERVER 2008
Configuring logging in named.conf
Radio button Dependency using JSF and Apache Trinidad
How can I display this without line breaks
How can I get an email to release its hold on an attachment after sending?
SCCM OSD deployment to Hyper-v R2
strange connection speed problem