Interview Questions

I use the preprocessor macro...

C Interview Questions and Answers


(Continued from previous question...)

I use the preprocessor macro...

Q: I use the preprocessor macro
#define Nullptr(type) (type *)0
to help me build null pointers of the correct type.

A: This trick, though popular and superficially attractive, does not buy much. It is not needed in assignments or comparisons;It does not even save keystrokes.

(Continued on next question...)

Other Interview Questions