gia na anapsoyn ligo ta aimata :-)
Giannis Papadopoulos
ipapadop at inf.uth.gr
Thu Nov 10 11:40:03 EET 2005
Giorgos Keramidas wrote:
> On 2005-11-09 11:58, Haris Alatas <haris at crack.gr> wrote:
>
>>Giorgos Keramidas wrote:
>>
>>>On 2005-11-09 04:05, Fotis Georgatos <gef at ceid.upatras.gr> wrote:
>>>
>>>>#define TESTNUM1 -(1<<31)
>>>>#define TESTNUM2 -2147483648
>>>>
>>>>int main (void)
>>>>{
>>>> if ( TESTNUM1 == TESTNUM2 )
>>>> printf("The numbers are equal: %d %d\n", TESTNUM1, TESTNUM2 );
>>>> if ( 0 < TESTNUM1 )
>>>> printf("Your lucky number TESTNUM1 is positive: %d\n", TESTNUM1 );
>>>> if ( 0 < TESTNUM2 )
>>>> printf("Your lucky number TESTNUM2 is positive: %d\n", TESTNUM2 );
>>>> return 0;
>>>>}
>>>
>>>Kai gia na xontrynei ligo to paixnidi...
>>>
>>>Opoios brei kai giati ayto to programma tupwnei diaforetika
>>>apotelesmata se i386, sparcv9 kai amd64 mhxanhna, kai grapsei sth
>>>lista akribws giati blepei ayta poy blepei se kathe mhxanhma,
>>>kerdizei kerasma apo mena, pou 8a to steilw me dika mou eksoda
>>>spiti tou.
>
> ...
>
> Μη βιάζεσαι όμως... είναι μια πολύ μικρή διαφορά που έχει η C99
> από τη C89, και θέλει λίγο προσοχή για να την ψυλιαστείς :)
>
>
Αν και δεν έχω πρόχειρο το standard της C99, μάλλον τα integer literals
είναι unsigned στην ISO C90 (όπως πολύ καλά μας λέει ο ευγενής gcc
koko.c:9: warning: this decimal constant is unsigned only in ISO C90
--
one's freedom stops where others' begin
Giannis Papadopoulos
Computer and Communications Engineering dept. (CCED)
University of Thessaly
http://dop.users.uth.gr
More information about the Linux-greek-users
mailing list