D
deepak
If i'm shifting an integer 'n' times where n > sizeof(int), It's giving
the same value as
that of n-sizeof(n). Why is it behaving like this. I studied that the
bit 'll be replaced by '0'.
Example;
int i = 1;
printf ("%d\n", i<<32);
o/p: 1.
int i = 2;
printf ("%d\n", i<<33);
o/p: 2.
the same value as
that of n-sizeof(n). Why is it behaving like this. I studied that the
bit 'll be replaced by '0'.
Example;
int i = 1;
printf ("%d\n", i<<32);
o/p: 1.
int i = 2;
printf ("%d\n", i<<33);
o/p: 2.