Char vs. Int
karl at haddock
karl at haddock
Thu Sep 18 23:31:00 AEST 1986
jl42 at andrew.cmu.edu writes:
>I have always been under the impression that a CHAR variable and an INT
>variable were the same in 'C'
No, they're not. An expression of type "char" will be converted to "int"
at the drop of a hat, but they are not identical. (Neither are arrays and
pointers the same thing, and for much the same reasons.)
Karl W. Z. Heuer (ima!haddock!karl; karl at haddock.isc.com), The Walking Lint
More information about the Comp.lang.c
mailing list