gia na anapsoyn ligo ta aimata :-)

Giannis Papadopoulos ipapadop at inf.uth.gr
Thu Nov 10 11:30:24 EET 2005


Fotis Georgatos 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;
> }
> 

Ξέχασες το #include <stdio.h>

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