Code:
#include <stdio.h>
#define LESS(x,y) ((x)-(y)<0)
int main()
{
unsigned int first_t =0;
unsigned int second_t=0;
int j=0;
first_t=~first_t ;
first_t=first_t - 1000;
second_t = first_t + 20 ;
printf("first_t = %u, second_t = %u\n", first_t, second_t);
if ( LESS(first_t, second_t) )
printf(" first is less \n");
for ( ;j<5000;j++ )
first_t++;
printf("first_t = %u, second_t = %u\n", first_t, second_t);
if ( LESS(first_t,second_t) )
printf("1.... first is still less ....\n");
else
printf(".1..... second is more \n");
printf("first_t = %u, second_t = %u\n", first_t, second_t);
if ( second_t > first_t )
printf(" 2......first is less \n");
else
printf(".2.......second is more \n");
return 0;
}
/* my output
first_t = 4294966295, second_t = 4294966315
first_t = 3999, second_t = 4294966315
.1..... second is more
first_t = 3999, second_t = 4294966315
2......first is less
*/