Is a run-time integral value of 0, cast to a pointer, guaranteed to be a null pointer?
C Interview Questions and Answers
(Continued from previous question...)
Is a run-time integral value of 0, cast to a pointer, guaranteed to be a null pointer?
No. Only constant integral expressions with value 0 are guaranteed to indicate null pointers.
(Continued on next question...)
Other Interview Questions
|