How to get min and max of Int64 and UInt64 in C#

1 Answer

0 votes
// Int64 = signed eight bytes integer within the range of: -9223372036854775808 to 9223372036854775807

// UInt64 = unsigned eight bytes integer within the range of: 0 to 18446744073709551615

using System;

class Program
{
    static void Main() {
        Console.WriteLine("range of {0} to {1}", Int64.MinValue, Int64.MaxValue);
        
        Console.WriteLine("range of {0} to {1}", UInt64.MinValue, UInt64.MaxValue);
    }
}




/*
run:

range of -9223372036854775808 to 9223372036854775807
range of 0 to 18446744073709551615

*/

 



answered Aug 5, 2022 by avibootz

Related questions

1 answer 151 views
1 answer 144 views
144 views asked Aug 5, 2022 by avibootz
1 answer 172 views
172 views asked Aug 5, 2022 by avibootz
1 answer 92 views
1 answer 148 views
1 answer 108 views
108 views asked Jun 9, 2021 by avibootz
1 answer 140 views
...