Bit move operator : Operator bitwise : Language Basics C# Source Code


Custom Search

C# Source Code » Language Basics » Operator bitwise »

 

Bit move operator








    
 
using System;

class Operators {
    static void Main() {
        int a = 256, b = 128, c, d;
        c = a >> 1;
        d = b << 1;
        Console.WriteLine("{0}", c); //128
        Console.WriteLine("{0}", d); //256
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Language Basics
» Operator bitwise