linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* shift operator
@ 2004-09-28  4:48 Ankit Jain
  2004-09-28  5:02 ` Venkatesh Joshi
  0 siblings, 1 reply; 4+ messages in thread
From: Ankit Jain @ 2004-09-28  4:48 UTC (permalink / raw)
  To: linux prg

hi

well if somebody can explain this

i=1;
i<<=15;
i>>=15;
i>>=1;

also

i=1;
i<<=14;
i>>=14;
i>>=1;

what should be the result of both and why?

thanks

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-28  6:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-28  4:48 shift operator Ankit Jain
2004-09-28  5:02 ` Venkatesh Joshi
2004-09-28  5:24   ` Ankit Jain
2004-09-28  6:37     ` Amit Dang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).