harish reddy

harish reddy

  • NA
  • 162
  • 33.9k

Boolean value ....

Jan 23 2018 11:36 PM
int z = 10005;
bool a = Convert.ToBoolean(z);
Console.WriteLine(a);
 
Above code is giving output as :True . Pls explain why?
 
If i want as "False" what should i do?
 
I get usually confused with boolean data type or if any boolean is used in the program.
Pls explain easily for c sharp 

Answers (4)