A null pointer is nothing but a void pointer pointing to nowhere.

Options
- True
- False


CORRECT ANSWER : False

Discussion Board
C++ - Void & NULL Pointers

Void pointer is a pointer which is used to point any type of variable. The advantage of using a void* for information hiding is more obvious when the object type is a structure. In that case, use of the void* prevents the user from accessing the structure members directly. NULL is an 'empty' pointer. NULL can be used to specify a pointer to nothing / not set. It is a value whilst void is a type.

Prajakta Pandit 01-25-2017 06:02 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement