What is the difference between null pointer and the void
pointer?
Answers were Sorted based on User's Feedback
Answer / vignesh1988i
NULL POINTER:
this pointer returns null value to the main function......
it cant be type casted.........
VOID POINTER:
this pointer has a special advantages that it can point
to any value (int , char, float etc) when its type casted
for eg:
main()
{
char *p;
int n;
(int *)p=&n;
so on the above character pointer is been type casted to
point an integer value n;
| Is This Answer Correct ? | 11 Yes | 3 No |
Answer / sunitha
null pointer : used to compair a pointer to any object or
a function and returns a null value to the main function.
void pointer : void pointer ia pointer which does not have
any return type and it can be easily type casted with other
type of pointers.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vaibhav
null pointer contain null value . it doesn't contain any
value.
while void pointer is a pointer that cascade at a runtime.
i.e it casting at runtime
| Is This Answer Correct ? | 3 Yes | 3 No |
Give me basis knowledge of c , c++...
i want to asked a question about c program the question is: create a c program that displays all prime numbers less than 500? using looping statement
Write a program to check whether a number is prime or not using c?
for(;;) printf("C language") What is out put of above??
2 Answers Practical Viva Questions,
Why doesn't C support function overloading?
Can you please explain the difference between exit() and _exit() function?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
how many errors in c explain deply
What is the main difference between calloc () and malloc ()?
How do I get an accurate error status return from system on ms-dos?
Define C in your own Language.
What is a stream in c programming?