-
What happens when a null pointer is converted into bool?
-
- the statement is ignored
- bool value evaluates to false
- bool value evaluates to true
- an error is flagged
- None of these
Correct Option: B
A pointer can be implicitly converted to a bool. A nonzero pointer converts to true and zero valued pointer converts to false.