Integer OverFlow : int : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » int »

 

Integer OverFlow








    
 

using System;
   
class IntegerOverFlow
{
    static void Main(string[] args)
    {
        short s = 32767;
        s++;
        Console.WriteLine(s);
   
        ushort us = 0;
        us--;
        Console.WriteLine(us);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» int