What is the difference bitween NULL AND VOID pointer?

Questions by sudhanshu shekhar   answers by sudhanshu shekhar

Showing Answers 1 - 12 of 12 Answers

Basavaraj

  • Nov 15th, 2006
 

NULL can be value for pointer type variablesVOID is a type identifier which has not sizeNULL and void are not sameExample:void* ptr = NULL;

  Was this answer useful?  Yes

howhy

  • Mar 27th, 2007
 

Uninitialsed Void pointer may point to some where.
But a NULL pointer may not.

A NULL pointer si something "Unavailable" "Unassigned" "Uninitialsed".

  Was this answer useful?  Yes

Gaurav bisht

  • Nov 9th, 2011
 

NULL pointer means- it points to nothing
whereas,void pointer refers to the fact that the pointer has no data type declared with it and it can be used to point variable of any data-type-int,float,etc..
ex-int*(void_ptr)

  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