Binary number literal - CSharp Language Basics

CSharp examples for Language Basics:int

Description

Binary number literal

Demo Code

using System;/*w ww  .  jav a  2  s.co m*/
class Program
{
   static void Main(string[] args)
   {
      int myBinary = 0b1000_0010;
      Console.WriteLine(myBinary);
   }
}

Result


Related Tutorials