C strongly typed?

Brett J. Vickers bvickers at ics.uci.edu
Sat Mar 10 11:48:39 AEST 1990


ftw at quasar.westford.ccur.com (Farrell Woods) writes:
>bvickers at ics.uci.edu (Brett J. Vickers) writes:
>>ftw at quasar.westford.ccur.com, I write:
>>>...The point is that `char' and `int' (and, `short' and `long')
>>>all describe *integer* quantities....
>
>>If C were as strongly typed a language as Ada (or Pascal) is, it
>>would not allow integers to be accessed and stored as char types.
>
>You're missing the point: C doesn't have a `char' type in the same sense
>as Pascal, et. al.

In other words, C is NOT strongly typed.  The very fact that C treats
characters as 8-bit integers suggests this.  It is fundamentally flexible
where type is concerned.

--
bvickers at bonnie.ics.uci.edu



More information about the Comp.lang.c mailing list