The Dangers of sizeof

D. Jason Penney penneyj at servio.UUCP
Sat Apr 15 09:43:00 AEST 1989


I've got egg all over my face on this one.  I won't even offer much
of an excuse for this -- my misimpression arose from some kind of glitch
using a VAXC compiler (VMS 4.X) which definitely misparsed an expression
similar to

sizeof (char) - 1

but is definitely unambigous and should have the value 0.

My profound apologies.



More information about the Comp.lang.c mailing list