Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: sizeof() confusion Message-ID: <14460@smoke.brl.mil> Date: 14 Nov 90 15:50:12 GMT References: <2665@cirrusl.UUCP> <1990Nov10.123204.8968@druid.uucp> <2692@cirrusl.UUCP> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 12 In article <2692@cirrusl.UUCP> dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) writes: >If characters are promoted to ints in expressions, ... But they aren't always. It depends on the context. The same is true for conversion of array name to pointer. >I'm sure K&R, H&S, and the ANSI standard all define these things in >various places. But they can only guarantee what things mean, not >whether the meanings they define will surprise programmers. A good way to avoid being surprised is to learn what the things mean before attempting to use them.