MathWorks Interview Question

What's the significance of a null pointer?

Interview Answers

Anonymous

Nov 9, 2011

C language does not specify an implicit initialization for objects of automatic storage duration . To ensure that the address to which ptr points is valid its explicitly initialized to the null pointer.

2

Anonymous

Nov 9, 2011

A pointer that does not refer to a valid object