Nested comments yet again.

kenny at m.cs.uiuc.edu kenny at m.cs.uiuc.edu
Wed Feb 28 12:40:01 AEST 1990


>Single-quoted strings?  I've heard of single-quoted characters, but not
>single-quoted strings.  Is this some new invention or just a slip of
>the keyboard?

It's a common extension that many compilers allow.  A multicharacter
constant such as 'ABC' has a value of some integer type, and
represents a machine word with the characters in it in some
appropriate ordering.

The ANS, if I remember aright, allows compilers to accept
multicharacter constants but leaves their type and value to be
implementation-defined.

Kevin	KE9TV



More information about the Comp.lang.c mailing list