Possible Duplicate:
Left shifting with a negative shift count
Consider my code follows
int main()
{
int k=1;
k=k<<-1;
printf("%d",k);
}
o/p
-2147483648
Why the output is like this.I know negative no's are stored in 2's complement
but here is there any use of this concept of -2s complement.Kindly give me some idea.