ushort OverFlow : ushort : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » ushort »

 

ushort OverFlow








    
 

using System;

class IntegerOverFlowConst {
    static void Main() {
        const ushort MAXUSHORT = 65535;
        const ushort ONE = 1;

        unchecked {
            ushort total = MAXUSHORT + ONE;
        }

        Console.ReadLine();
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» ushort