Short
using System;
/* A short value represents 16-bit signed integer type */
public class ShortExample
{
static void Main(String[] args)
{
short x = 100, y = 50;
Console.WriteLine(x.GetType());
Console.WriteLine(typeof(short));
Console.WriteLine(short.MinValue);
Console.WriteLine(short.MaxValue);
short z = (short)(x + y);
Console.WriteLine("Sum = " + z);
Console.ReadLine();
}
}
Output:
System.Int16
System.Int16
-32768
32767
Sum = 150