M
mrby
All,
Here is one question that I can not understand.
int main()
{
int i = 32;
printf("%p %p\n", 1<<i, 1<<32);
}
The result is:
0x1 0x0
("int" type on my machine is 32-bit)
Why 1<<i and 1<<32 get different result? I had thought
both of them would get 0x0.
Here is one question that I can not understand.
int main()
{
int i = 32;
printf("%p %p\n", 1<<i, 1<<32);
}
The result is:
0x1 0x0
("int" type on my machine is 32-bit)
Why 1<<i and 1<<32 get different result? I had thought
both of them would get 0x0.