Quote:
Originally posted by joeyBig
hi
When does the sizeof () operator return the value zero.
regards,
joe
|
Make sure you tell the compiler to do strict ANSI C compiling. You SHOULD get a warning for C, as this is undefined behavior if I am remembering correctly and hence compiler dependent. Some compilers may have extentions to handle this in a non-standard fashion, and this might be what you are seeing.
As to C++ last time I used it, there was no standard, so I'm really not sure about that.