Interview Questions

What does it mean when a pointer is used in an if statement?

C Interview Questions and Answers


(Continued from previous question...)

What does it mean when a pointer is used in an if statement?

Any time a pointer is used as a condition, it means “Is this a non-null pointer?” A pointer can be used in an if, while, for, or do/while statement, or in a conditional expression.

(Continued on next question...)

Other Interview Questions