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 212 views
1 answer 169 views
1 answer 187 views
1 answer 158 views
1 answer 157 views
1 answer 174 views
1 answer 161 views
...