c#中左移和右移操作符


using System;
namespace HxRuntech
{
    public class T1
    {
        static void Main()
        {
            int a = -5;
            int b = 5;

            int c1 = a >> 3;
            int c2 = a << 3;

            int d1 = b >> 3;
            int d2 = b << 3;

            Console.WriteLine(c1);
            Console.WriteLine(c2);
            Console.WriteLine(d1);
            Console.WriteLine(d2);
        }
    }
}