If you want floatin point division, at least one of the operands to / must be of a floating point type; otherwise integer division (round down) will be performed.
For fun, try this C99 program...
Type: Posts; User: qny
If you want floatin point division, at least one of the operands to / must be of a floating point type; otherwise integer division (round down) will be performed.
For fun, try this C99 program...