4
Reply

Boolean value ....

harish reddy

harish reddy

Jan 23 2018 11:36 PM
132
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)