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
T-SQL: Get the count of the valid/current 1:N references as return field
Which Cisco Router Is This?
How can i display who has access and flag secuirty concerns?
MDX query help (sub queries)
IIS host header and DNS
Windows 2008 64bit system showing only 4GB usable...
Remove shortcuts possibility in a web page or to put in favorite
importing another ACT DB
Windows 2008 Network Load Balancing
data export