What is difference between void and null pointer. is it same?

Questions by sudhanshu shekhar   answers by sudhanshu shekhar

Showing Answers 1 - 2 of 2 Answers

arulkumar

  • Feb 10th, 2007
 

No, Void pointer is a pointer it is automatically type casted, we can assign to any pointer. But NULL pointer is a pointer which holds 0 (zero) as its content. (i.e) It doesn't pointing anything.

howhy

  • Mar 27th, 2007
 

arulkumar: 

No, Void pointer is a pointer it is automatically type casted, we can assign to any pointer. But NULL pointer is a pointer which holds 0 (zero) as its content. (i.e) It doesn't pointing anything.

 

Void pointer gets typecasted automatically  only in C.
While is C++ we have to do it manually.
(This is the difference of Void Pointers in C And C++ )
 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions