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

1 Answer

0 votes
using System;

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


/*
run:
    
2
0
65535

*/

 



answered Dec 12, 2016 by avibootz

Related questions

1 answer 209 views
1 answer 164 views
1 answer 183 views
1 answer 157 views
1 answer 153 views
1 answer 168 views
1 answer 156 views
...