What is the difference between null pointer and void pointer

Answer Posted / nagarala sai deepak reddy

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 ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of function is main ()?

797


What are the differences between new and malloc in C?

803


What is the difference between text and binary modes?

862


How can you be sure that a program follows the ANSI C standard?

1371


Differentiate between the = symbol and == symbol?

920


Write a program that accept anumber in words

1464


Write a program in c to replace any vowel in a string with z?

876


What is spaghetti programming?

874


What is c language and why we use it?

799


What is the purpose of 'register' keyword in c language?

806


Why enum is used in c?

695


Array is an lvalue or not?

843


What do you mean by command line argument?

823


Explain output of printf("Hello World"-'A'+'B'); ?

1170


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

845