Size of void pointer - Platform dependent value
Q. What is size of void pointer?
- Published on 16 Jun 15a. 3
b. 9
c. 10
d. Platform dependent value
ANSWER: Platform dependent value
The size of a void* is a platform dependent value. Typically it's value is 4 or 8 for 32 and 64 bit platforms respectively. If you are getting 2 as the value then your likely running on a 16 bit coding platform (or potentially have a coding error).