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
windows 7 home password policy
How Do I Remove The File Tab From Ribbon In Access 2010
Resetting a 3600 Cisco Router to Factory Defaults
Copying the shade of diagram into a table cell
run excel and run the enable auto refresh
Cloud Computing
Speed of Select query is very slow
freezer healing on side
Trying to connect to the server using Microsoft SQL Server Management Studio
XP - can boot into safe mode, but not safe mode with networking. Also can't boot normally