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
Manav PandyaPosted Jan 24, 2018, 1:23 AM
harish reddyPosted Jan 24, 2018, 12:41 AM
Suraj KumarPosted Jan 23, 2018, 11:56 PM
Manav PandyaPosted Jan 23, 2018, 11:54 PM