Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!cmcl2!adm!smoke!gwyn From: gwyn@smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: `char' parameters Keywords: parameter, K&R, ANSI C Message-ID: <8408@smoke.ARPA> Date: 1 Sep 88 01:37:49 GMT References: <1616@se-sd.sandiego.ncr.com> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 13 In article <1616@se-sd.sandiego.ncr.com> rns@se-sd.sandiego.NCR.COM (Rick Schubert) writes: > 1. Is it illegal to declare a parameter to be of type `char'? No, but it's rather pointless since the parameter really IS passed as an int. The compiler HAS to make the adjustment. > 2. If not, is it valid to treat the parameter as type `int'? This is recommended practice. > 3. If so, what does the unary `&' operator do to such a variable? Takes its address, just as for any other int.