On Jan 26, 2011, at 11:34 AM, André Hentschel wrote: > Am 26.01.2011 18:03, schrieb Vincent Povirk: >> I maintain that This->stats.categories[categoryIndex].sName cannot be >> NULL. It is an array, not a pointer. > > But an Arrayname points to the first field IMHO.
Not quite. In C, arrays "degrade" to pointers at the slightest provocation, but they are not the same thing. For example, sizeof(anArray) gives the full size of the array, while sizeof(aPointer) gives the size of a pointer. In any case, that doesn't matter. Even if an array were just a pointer to its first element, it can't be NULL. Regards, Ken
