Usha Mohanta

Usha Mohanta

  • NA
  • 15
  • 1.3k

Can I assign 1 or 0 into bool variable?

Mar 30 2018 4:48 PM
Can I assign 1 or 0 into bool variable?
 
static void Main(string[] args)
{
bool b = 1;
Console.WriteLine(b);
Console.ReadLine();

Answers (4)