What is the difference between null pointer and void pointer

Answer Posted / vignesh1988i

NULL POINTER :
the pointer which dosent point to any memory location is
called NULL POINTER.

VOID POINTER :
the pointer is a one which can only point to a particular
memory location of it's own type.... but when the pointer
is given void it can be mde to point any location of
different type

Is This Answer Correct ?    134 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are binary trees?

602


What are the different data types in C?

718


Which are low level languages?

619


What is the use of header files?

590


Tell me when is a void pointer used?

640






Create a simple code fragment that will swap the values of two variables num1 and num2.

800


Can you define which header file to include at compile time?

574


Can I initialize unions?

578


Explain pointer. What are function pointers in C?

618


Write a program to implement queue.

654


How was c created?

581


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

717


while initialization of array why we use a[][2] why not a[2][]...?

1857


why return type of main is not necessary in linux

1695


Why can arithmetic operations not be performed on void pointers?

583