Question.3
A developer checks a pointer using different styles:
Sensor* s = nullptr; if (s == nullptr) printf("A"); if (s == 0) printf("B"); if (!s) printf("C");
Which checks print?
Select Answer
Only A -- nullptr only works with == nullptr
== nullptr
A and C -- nullptr works with == nullptr and boolean check, but not == 0
nullptr
== 0
All three: A, B, and C
Only A and B