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
What are static variables in c?
What are the c keywords?
What does *p++ do?
what will be the output for the following main() { printf("hi" "hello"); }
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?
How does pointer work in c?
Why header file is used in c?
What is nested structure?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is static and auto variables in c?
What is the general form of #line preprocessor?
Array is an lvalue or not?
What are nested functions in c?
.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; }
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