`char' parameters
Doug Gwyn
gwyn at smoke.ARPA
Thu Sep 1 11:37:49 AEST 1988
In article <1616 at se-sd.sandiego.ncr.com> rns at 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.
More information about the Comp.lang.c
mailing list