down

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Dec 14 07:08:41 AEST 1988


In article <45472 at yale-celray.yale.UUCP> wald-david at CS.YALE.EDU (david wald) writes:
>Doesn't the expression (c = getchar()) have type (int) regardless of the
>type of c?  Or will c being a char really prevent this comparison?

Doesn't matter; the important point is that wedging the int value
returned by getchar() through a char knothole loses information.



More information about the Comp.lang.c mailing list