lenelex.com
Home
Quizzes
Games
Register
Log in
Question 1 of 20
What is the output of the following code snippet?
bool a = Convert.ToBoolean(0); bool b = Convert.ToBoolean(1); Console.WriteLine(a | b);
A. Error
B. True
C. False
Links:
Converting to and from Boolean values
Boolean Data Type