Path: utzoo!attcan!uunet!husc6!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: hardcoded constants Message-ID: <9233@smoke.BRL.MIL> Date: 27 Dec 88 05:17:41 GMT References: <2636@m2-net.UUCP> <1104@goofy.megatest.UUCP> <267@twwells.uucp> <410@aplcen.apl.jhu.edu> <15145@mimsy.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <15145@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >sizeof is indeed not a function, yet sizeof('\0') is the same as >sizeof(0) and sizeof(int), which are usually not the same as sizeof(char). We should probably explain also that it's the same as sizeof 0 and sizeof '\0', but not sizeof int (which is illegal). Since any C text should explain this, look it up if you don't understand.