Path: utzoo!attcan!uunet!husc6!mailrus!ukma!uflorida!haven!aplcen!arrom From: arrom@aplcen.apl.jhu.edu (Ken Arromdee ) Newsgroups: comp.lang.c Subject: Re: hardcoded constants Message-ID: <410@aplcen.apl.jhu.edu> Date: 22 Dec 88 19:51:50 GMT References: <2636@m2-net.UUCP> <1104@goofy.megatest.UUCP> <267@twwells.uucp> Reply-To: arrom@aplcen.UUCP (Ken Arromdee (600.429)) Organization: Johns Hopkins University/CPP, Laurel, MD Lines: 12 >How about sizeof('\0') is equal to the size of an integer, which is >unlikely to be 1? >Remember, in C, character constants are integer constants. I was under the impression that "sizeof" is done at compile time and isn't really a function, so this would correctly return 1. -- "Thinking small is seeing your bus on the other side of the street, and wishing you could teleport across to catch it." --Kenneth Arromdee (ins_akaa@jhunix.UUCP, arromdee@crabcake.cs.jhu.edu, g49i0188@jhuvm.BITNET) (not arrom@aplcen, which is my class account)