Conversions/casts one more time
levy at ttrdc.UUCP
levy at ttrdc.UUCP
Sat Dec 13 04:59:14 AEST 1986
In article <820 at mtund.UUCP>, adam at mtund.UUCP writes:
>Ugh. %x expects an int, so the result of feeding it a char is,
>*and ought to be*, UNDEFINED.
> Adam Reed (mtund!adam)
In principle, yes; in practice all C compilers I've seen (what does the
latest ANSI std. say?) convert chars to ints when passing them as arguments.
--
------------------------------- Disclaimer: The views contained herein are
| dan levy | my own and are not at all those of my em-
| an engihacker @ | ployer or the administrator of any computer
| at&t computer systems division | upon which I may hack.
| skokie, illinois |
-------------------------------- Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa,
allegra,ulysses,vax135}!ttrdc!levy
More information about the Comp.lang.c
mailing list