Shift Operators in action : Shift operator : Operator C# Examples


C# Examples » Operator » Shift operator »

 

Shift Operators in action









    
using  System;

class  MainClass
{
    static  void  Main(string[]  args)
    {
        uint  a  =  0;
        uint  b  =  0;

        a  =  8  <<  3;
        
        Console.WriteLine(a);
        
        b  =  32  >>  4;
        
        Console.WriteLine(b);
    }
}
    
   
  
   



Output

64
2


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Operator
» Shift operator