Re: is order urgent doubt



Walter Roberson wrote:
In article <g248q6$3u7$1@xxxxxxxx>, jacob navia <jacob@xxxxxxxxxx> wrote:

6.7.2 Type specifiers

Each list of type specifiers shall be one of the following sets (delimited by commas, when there is
more than one set on a line); the type specifiers may occur in any order, possibly
intermixed with the other declaration specifiers.

Notice that bit about "in any order". So long long int is the
same as long int long .

And why is not long int, then long?

What about

int int int m;

And any kind of nonsense you can think about?

long signed long int,
signed long int long,
signed long signed long,
signed int long signed long int
long int long int
long int int long

ad nauseum?

I just use the last one parsed.

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
.



Relevant Pages

  • Re: These are identical, right? char const* and const char*
    ... There are a slew of type specifiers that can appear adjacently in ... Some orderings tend to be used ... One thing I actually like about teaching Java is that when anyone asks why ... unsigned int, ...
    (comp.lang.cpp)
  • Re: These are identical, right? char const* and const char*
    ... There are a slew of type specifiers that can appear adjacently in ... thought that was an interesting proposition, do I established the habit of ... right if precedence didn't override the rule. ... unsigned int, ...
    (comp.lang.cpp)
  • Re: Why not auto?
    ... >> int only for functions, not for objects, but I might be mistaken. ... >> just took a quick look through the C90 standard and didn't find ... Each list of type specifiers shall be one of the following sets ... the type signed int may ...
    (comp.lang.c)
  • Re: What is the right interpretation?
    ... The type "long int" followed by the type long ... I want to be clear that I'm not claiming that this is the only possible algorithm, or even the best algorithm, merely that any conforming implementation of C must interpret type specifiers in the same way that this algorithm does. ...
    (comp.std.c)
  • Re: Serious conformance bug in
    ... Each list of type specifiers shall be one of the following sets ... (delimited by commas, when there is more than one set on a line); ... synonyms for "unsigned long long int". ... It means that when you see "int, signed, or signed int" in the list, it ...
    (comp.lang.c)