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
VS 2010 Call Outlook New message in VB.NET
is there a way to export GFI webmonitor Rules on isa 2006 for webgrade filter
Sonicwall E5500 bandwidth/shaping vs Packetlogic PL5600
Exchange 2010 Remote Connectivity, SMTP
BlazeDS RDS Setup Issues
IPad / iphone, activesync issues with Exchange 2003 + ISA 2006
Windows XP "Stored User Names and Passwords" disappear after restart
Server security analysis to determine patch level
Problem with Silverlight Animation -- cannot resolve targetname
Cisco QOS to prioritize voice