Z
zahy[dot]bnaya[At]gmail[dot]com
hello,
I have a constant declared as
#define TABLESIZE 16*15*14*13*12*11*10*9/3 /// 172972800
I tried the following code:
if (TABLESIZE == 172972800)
{
printf("%d\n",518763960%172972800);
printf("%d\n",518763960%TABLESIZE);
printf("%d\n",TABLESIZE);
}
My output is:
172818360
86486400
172972800
How can it be?
Thanks
I have a constant declared as
#define TABLESIZE 16*15*14*13*12*11*10*9/3 /// 172972800
I tried the following code:
if (TABLESIZE == 172972800)
{
printf("%d\n",518763960%172972800);
printf("%d\n",518763960%TABLESIZE);
printf("%d\n",TABLESIZE);
}
My output is:
172818360
86486400
172972800
How can it be?
Thanks