How to get min and max int value in C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        Console.WriteLine(Int32.MinValue);
        Console.WriteLine(int.MinValue);
        
        Console.WriteLine(Int32.MaxValue);
        Console.WriteLine(int.MaxValue);
    }
}




/*
run:

-2147483648
-2147483648
2147483647
2147483647

*/

 



answered Jun 9, 2021 by avibootz

Related questions

1 answer 240 views
1 answer 235 views
1 answer 247 views
1 answer 193 views
193 views asked Jun 9, 2021 by avibootz
1 answer 226 views
1 answer 253 views
253 views asked Jun 9, 2021 by avibootz
1 answer 278 views
...