A define problem
Eric Hunter
hunter at Oswego.EDU
Tue Jan 8 12:29:23 AEST 1991
In article <440 at bally.Bally.COM> siva at bally.Bally.COM (Siva Chelliah) writes:
>#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 ?
You could get a new compiler. ;^}
Eric.
-------------------------------------------------------------------------
The difference between emacs, and vi, | hunter at oswego.oswego.edu
is like the difference between | {rutgers}!sunybcs!oswego!hunter
making love, and masturbation. | hunter at snyoswva.bitnet
More information about the Comp.lang.c
mailing list