Bit Operators : Operator bitwise : Language Basics C# Source Code


Custom Search

C# Source Code » Language Basics » Operator bitwise »

 

Bit Operators








    
 


using System;

class MainClass
{
    static void Main(string[] args)
    {
        int i = 1;
        for (int j = 0; j < 8; j++)
        {
            Console.WriteLine(
                "{0} << {1} = {2}", i, j, i << j);
        }
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Language Basics
» Operator bitwise