[OCLUG-devel] sizeof an array of pointers

Christopher Smith x at xman.org
Mon Jun 20 13:29:31 PDT 2005


Dan Stromberg wrote:
> On Mon, 2005-06-20 at 12:08 -0700, Christopher Smith wrote:
>>Nah. It's effectively doing sizeof(char**), which gives you "the size of
>>a pointer to char*". The size of a pointer to char** would be doing
>>sizeof(char***). As you noted, on nearly any system these will be the
>>same size, but there is a semantic difference.
> Ah, I now agree.  Thanks!

Sometimes it's easier to parse C than English. ;-)

--Chris




More information about the OCLUG-devel mailing list