We cannot assign negative value in Unsigned integer

Sourav.Kayal
Posted by Sourav.Kayal under C# category on | Points: 40 | Views : 1733
class Program
{
//We cannot assign negative value in Unsigned integer
static void Main(string[] args)
{
UInt16 xyz= -100; //Error
UInt64 abc = -100; //Error

Console.ReadLine();
}
}

Comments or Responses

Login to post response