Re: is order urgent doubt
- From: jacob navia <jacob@xxxxxxxxxx>
- Date: Tue, 03 Jun 2008 22:16:06 +0200
Flash Gordon wrote:
jacob navia wrote, On 03/06/08 07:21:new to c wrote:
<snip>
Code print
sizeof(long int): 4
sizeof(int long): 4
sizeof(double int): 4
sizeof(int double): 8
sizeof(long long int): 8
sizeof(long int long): 4
<snip>
Jacob, in addition to Keith's questions did you notice that the above is wrong? As "long int long" is the same as "long long" the above should be 8.
6.7.2 Type specifiers
Syntax
1 type-specifier:
void char short int long float double signed unsigned _Bool _Complex _Imaginary struct-or-union-specifier enum-specifier typedef-name
Constraints
2 At least one type specifier shall be given in the declaration specifiers in each declaration, and in the specifier-qualifier list in each struct declaration and type name. 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.
— void
— char
— signed char
— unsigned char
— short, signed short, short int, or signed short int
— unsigned short, or unsigned short int
— int, signed, or signed int
— unsigned, or unsigned int
— long, signed long, long int, or signed long int
— unsigned long, or unsigned long int
— long long, signed long long, long long int, or
signed long long int
— unsigned long long, or unsigned long long int
— float
— double
— long double
— _Bool
— float _Complex
— double _Complex
— long double _Complex
— float _Imaginary
— double _Imaginary
— long double _Imaginary
— struct or union specifier
— enum specifier
— typedef name
OK, then , I see:
— long long, signed long long, long long int, or signed long long int
— unsigned long long, or unsigned long long int
as legal declarations for long long variants.
long int long is a double declaration:
long int, and then long.
<snip>
Maybe this will clarify what lcc-win is doing.
Those warnings made it clearer in my opinion, but I agree with Keith's comments.
??? I do not see any message from Keith in this thread.
Could you clarify?
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
.
- Follow-Ups:
- Re: is order urgent doubt
- From: Keith Thompson
- Re: is order urgent doubt
- From: Antoninus Twink
- Re: is order urgent doubt
- From: Walter Roberson
- Re: is order urgent doubt
- References:
- is order urgent doubt
- From: new to c
- Re: is order urgent doubt
- From: Keith Thompson
- Re: is order urgent doubt
- From: new to c
- Re: is order urgent doubt
- From: Bartc
- Re: is order urgent doubt
- From: new to c
- Re: is order urgent doubt
- From: Keith Thompson
- Re: is order urgent doubt
- From: new to c
- Re: is order urgent doubt
- From: jacob navia
- Re: is order urgent doubt
- From: Flash Gordon
- is order urgent doubt
- Prev by Date: Re: Implicit loop and reading in an unknown number of variables
- Next by Date: Re: is order urgent doubt
- Previous by thread: Re: is order urgent doubt
- Next by thread: Re: is order urgent doubt
- Index(es):
Relevant Pages
|