Shifting an integer value : Integer Family « Data Type « C# / CSharp Tutorial






using System;
class MainClass8
{
    static void Main()
    {
        int a = 1000;
        a >>= 4;
        Console.WriteLine(a);
    }
}








2.4.Integer Family
2.4.1.Family of Integers
2.4.2.Integer Types
2.4.3.Integer ranges
2.4.4.Use 'is' for int value type
2.4.5.A C# int is a shorthand for System.Int32, which inherits the following members from System.Object
2.4.6.Shifting an integer value