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

1 Answer

0 votes
using System;

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


/*
run:
    
2
0
65535

*/

 



answered Dec 9, 2016 by avibootz

Related questions

1 answer 212 views
1 answer 208 views
1 answer 222 views
1 answer 199 views
1 answer 167 views
...