A define problem

Siva Chelliah siva at bally.Bally.COM
Tue Jan 8 05:46:53 AEST 1991


#define half(x) (x)/2
main ()
{
  int i=5;
  printf( "i/2 = %d\n",half(i-5));
}

This program prints 3 instead of 0 !  How can I make it print 0 ?

Thanks 

Siva



More information about the Comp.lang.c mailing list