Re: Which is faster?
- From: comeau@xxxxxxxxx (Greg Comeau)
- Date: 1 Aug 2008 17:13:41 -0400
In article <d0e7b0f3-0a2d-4cd1-9a3e-5dd055b29488@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Ali Karaali <alicpp@xxxxxxxxx> wrote:
3.1.3.4 (C89): "An integer character constant is a sequence of one or more
multibyte characters enclosed in single-quotes, as in 'x' or 'ab'."
6.4.4.4(2) (C99): "An integer character constant is a sequence of one or
more multibyte characters enclosed in single-quotes, as in 'x'."
The difference between the above two quotes led me to poke around further
in C99:
I don!t understand what is the differance?
That apparently they hoisted out the discussion about 'ab' to
a paragraph by itself, which you see below:
6.4.4.4(10): "The value of an integer character constant containing more
than one character (e.g., 'ab'), or containing a character or escape
sequence that does not map to a single-byte execution character, is
implementation-defined."
What does it mean?
It means it is up the implementation what it (say 'ab') actually means,
as is say '\q'.
--
Greg Comeau / 4.3.10.1 with C++0xisms now in beta!
Comeau C/C++ ONLINE ==> http://www.comeaucomputing.com/tryitout
World Class Compilers: Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries... Have you tried it?
.
- Follow-Ups:
- Re: Which is faster?
- From: Harald van Dijk
- Re: Which is faster?
- From: Ali Karaali
- Re: Which is faster?
- References:
- Re: Which is faster?
- From: pete
- Re: Which is faster?
- From: Richard Heathfield
- Re: Which is faster?
- From: Ali Karaali
- Re: Which is faster?
- Prev by Date: Re: problem with macros
- Next by Date: Re: Seg fault even though address space is accessible
- Previous by thread: Re: Which is faster?
- Next by thread: Re: Which is faster?
- Index(es):
Relevant Pages
|