What is the difference between null pointer and void pointer

Answer Posted / lakhpat

A Void pointer is a special type of pointer of void and
denotes that it can point to any data type. NULL pointers
can take any pointer type, but do not point to any valid
reference or memory address. It is important to note that a
NULL pointer is different from a pointer that is not
initialized.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is New modifiers?

778


Why does everyone say not to use scanf? What should I use instead?

822


What is #include in c?

679


write a program to find the given number is prime or not

4074


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

892






There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

946


What are the advantages of external class?

678


Can we use visual studio for c?

646


Why is c used in embedded systems?

712


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

1741


What is the difference between the expression “++a” and “a++”?

721


What is wrong with this initialization?

678


What is the argument of a function in c?

677


Is calloc better than malloc?

670


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1353