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

What are static variables in c?

802


What are the c keywords?

949


What does *p++ do?

786


what will be the output for the following main() { printf("hi" "hello"); }

10088


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

887


How does pointer work in c?

811


Why header file is used in c?

765


What is nested structure?

766


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

817


What is static and auto variables in c?

779


What is the general form of #line preprocessor?

760


Array is an lvalue or not?

839


What are nested functions in c?

763


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2291


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

890