Size of void pointer - Platform dependent value

Q.  What is size of void pointer?

- Published on 16 Jun 15

a. 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).

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)