The data type defines the max and min values which it can hold.
using System;
class Program
{
static void Main(string[] args)
{
Console.WriteLine(int.MaxValue);
Console.WriteLine(int.MinValue);
Console.WriteLine(byte.MaxValue);
Console.WriteLine(byte.MinValue);
}
}
The output:
2147483647
-2147483648
255
0
java2s.com | Contact Us | Privacy Policy |
Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
All other trademarks are property of their respective owners. |