Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What happens when a null pointer is converted into bool?

a) an error is flagged
b) bool value evaluates to true
c) bool value evaluates to false
d) the statement is ignored

Answer: c
Explanation: A pointer can be implicitly converted to a bool. A nonzero pointer converts to true and zero valued pointer converts to false.

Join The Discussion