Re: 1>>x behaviour



What does shift do? I read this thread and was intrigued but don't
understand it's use.
I am just learning the basics.

Please advise.

Morten Wennevik wrote:

On Fri, 24 Nov 2006 10:14:50 +0100, Jay <nospam> wrote:

So is that a bug?


It's by design. When you think about it, shifting a 32 bit integer with
anything more than 31 places doesn't make any sense.

http://msdn2.microsoft.com/en-us/library/xt18et0d.aspx


--
Happy Coding!
Morten Wennevik [C# MVP]

.