Pregunta de entrevista de Safe Software

Explain encapsulation. What is a null pointer?

Respuesta de la entrevista

Anónimo

10 de dic de 2017

(answered encapsulation earlier). A Null pointer is a pointer that either inadvertently or by design is pointing to a block of memory that is invalid. Inadvertent NULL pointers are generally due to a lack of initializing them or bypassing an assignment of the pointer to a valid block of memory. Designed NULL pointers are generally a result of a subroutine call in which the subroutine wishes to signal that there is no valid data available.