How to get the size, min and max of ulong Data Type in C#

1 Answer

0 votes
using System;

namespace ConsoleApplication_C_Sharp
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine(sizeof(ulong));
            Console.WriteLine(ulong.MinValue);
            Console.WriteLine(ulong.MaxValue);
        }
    }
}


/*
run:
    
8
0
18446744073709551615

*/

 



answered Dec 12, 2016 by avibootz

Related questions

1 answer 257 views
1 answer 154 views
1 answer 183 views
1 answer 157 views
1 answer 153 views
1 answer 168 views
1 answer 156 views
...