What is the difference between null pointer and the void
pointer?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

678


Can I initialize unions?

590


How can I invoke another program or command and trap its output?

610


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1617


What are the restrictions of a modulus operator?

628






What does *p++ do?

581


What is a null pointer in c?

591


What are register variables in c?

571


Explain what are bus errors, memory faults, and core dumps?

786


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

632


Why do we use & in c?

587


How many bytes are occupied by near, far and huge pointers (dos)?

664


How can I find out how much free space is available on disk?

624


How can I list all of the predefined identifiers?

576


Can you please explain the difference between strcpy() and memcpy() function?

595