C Programming - Pointers - Discussion

Discussion Forum : Pointers - General Questions (Q.No. 1)
1.
What is (void*)0?
Representation of NULL pointer
Representation of void pointer
Error
None of above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
124 comments Page 13 of 13.

Udaykiran said:   8 years ago
I can't understand this. Please explain.

Raj said:   8 years ago
(Void *)pointer is a pointer having no data type so it can't take implicitly data type we need to give data type explicitly.

Ie
(Void *)p

Need to give;
(int)*p
Or
(char) *p


(Void* ) have the flexibility to change the data type.

KHALIL Yhaia said:   7 years ago
It's a cast of 0 to (void *) '0' is a null value, so we got a NULL pointer.

Aman said:   7 months ago
(void*) converts the integer 0 into a void* pointer type.

The result is a null pointer of type void*


Post your comments here:

Your comments will be displayed after verification.