user1215630
user1215630

Reputation:

How to understand (void*)0

Recently in my exercise I have found a question (void*)0 answered NULL pointer how to understand this actually.

How can this be understood? Is this is what the definition of macro NULL?

Upvotes: 0

Views: 102

Answers (1)

cafce25
cafce25

Reputation: 27533

Yes, actually ((void *)0) is a correct definition of the NULL pointer.

Upvotes: 1

Related Questions