View Single Post
Join Date: Aug 2008
Posts: 83
Reputation: nmaillet is an unknown quantity at this point 
Solved Threads: 18
nmaillet nmaillet is offline Offline
Junior Poster in Training

Re: Howmany byte is pointer?

 
0
  #7
Dec 1st, 2008
Originally Posted by Narue View Post
>It's so simple: exactly sizeof(void*) .
How do you propose this to be meaningful for pointers to functions?
The size of a pointer has to be consistent for a particular system. It is the reason for labeling a system as 32-bit, 64-bit, etc. The reason for having different types of pointers is for the allocation of memory at that particular location, and to help prevent buffer overflows when passing a pointer.
Reply With Quote