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 132 views
1 answer 140 views
1 answer 151 views
1 answer 109 views
109 views asked Jun 9, 2021 by avibootz
1 answer 142 views
1 answer 167 views
167 views asked Jun 9, 2021 by avibootz
1 answer 182 views
...