Re: Which is faster?



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?
.



Relevant Pages

  • Re: How to delete the following file
    ... No confusion here unless you don't understand that the back-slash is an ... "escape" character, not part of the file name. ... entire name in single-quotes, then escaping the offending character (the ... The issue is that the file name commences with a dash, ...
    (RedHat)
  • Re: How to concatenate strings that contains has nulls?
    ... >> first null character" (C99 7.1.1p1). ... If a sequence of characters ... >> includes a null character other than at the end, it's not a string. ...
    (comp.lang.c)
  • Re: Which is faster?
    ... "An integer character constant is a sequence of one or more ... multibyte characters enclosed in single-quotes, ...
    (comp.lang.c)
  • Re: Which is faster?
    ... multibyte characters enclosed in single-quotes, ... in C99: ... than one character, or containing a character or escape ... sequence that does not map to a single-byte execution character, ...
    (comp.lang.c)
  • RE: DataAdapter returns 0 results, what am I doing wrong?
    ... You might need to use the % character instead of the * character with Like: ... Also, double-quote delimiters might work, but you might need single-quotes: ... Kerry Moorman ... > (Appointments INNER JOIN Buildings ON ...
    (microsoft.public.dotnet.languages.vb)