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

Explain how can I open a file so that other programs can update it at the same time?

580


Not all reserved words are written in lowercase. TRUE or FALSE?

716


Why doesn't C support function overloading?

1594


What is the c language function prototype?

636


What is structure in c definition?

562






How can I implement sets or arrays of bits?

595


How to declare a variable?

558


What is the difference between procedural and declarative language?

637


Explain how can I prevent another program from modifying part of a file that I am modifying?

628


Why is extern used in c?

604


Write a Program to accept different goods with the number, price and date of purchase and display them

5424


Write a program for Overriding.

672


Using which language Test cases are added in .ptu file of RTRT unit testing???

3573


What are dangling pointers? How are dangling pointers different from memory leaks?

610


Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers

1415