Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!panda!genrad!decvax!ima!haddock!karl From: karl@haddock Newsgroups: net.lang.c Subject: Re: Char vs. Int Message-ID: <86900057@haddock> Date: Thu, 18-Sep-86 09:31:00 EDT Article-I.D.: haddock.86900057 Posted: Thu Sep 18 09:31:00 1986 Date-Received: Sat, 20-Sep-86 00:15:02 EDT References: <3770@brl-smoke.ARPA> Lines: 10 Nf-ID: #R:brl-smoke.ARPA:3770:haddock:86900057:000:416 Nf-From: haddock!karl Sep 18 09:31:00 1986 jl42@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@haddock.isc.com), The Walking Lint