Code:
main()
{
printf("%x",-1<<4)
}
fff0
how does this result is obtained.. what is the actual process behind it...
|
Light Poster
|
|
| 12Aug2007,01:42 | #1 |
|
Code:
main()
{
printf("%x",-1<<4)
}
fff0 how does this result is obtained.. what is the actual process behind it... Last edited by shabbir; 12Aug2007 at 06:24.. Reason: Code block - http://www.go4expert.com/forums/misc.php?do=bbcode#code |
|
Team Leader
|
![]() |
| 12Aug2007,06:12 | #2 |
|
ffff is shifted left 4 bits, therefore the left-hand f disappears and a 4 bits of zero appear on the right. I mean it now, you are being silly and acting like a spoiled brat that expects everything to be provided without any effort on your part. Read some documentation.
|