🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9330

Re: Char vs. Int

#9330
From: karl
Date: Thu, 18 Sep 1986 13:31
10 lines
951 bytes
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
Technical Details
Message-ID: <86900057@haddock>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!husc6!panda!genrad!decvax!ima!haddock!karl
References: <3770@brl-smoke.ARPA>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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