Question: Fill in the following macro definitions to generate the double-precision values +, , and 0: You cannot use any include files (such as math.h), but
Fill in the following macro definitions to generate the double-precision values +∞, −∞, and −0:

You cannot use any include files (such as math.h), but you can make use of the fact that the largest finite number that can be represented with double precision is around 1.8 × 10308.
#define POS INFINITY #define NEG_INFINITY #define NEG ZERO
Step by Step Solution
3.40 Rating (159 Votes )
There are 3 Steps involved in it
In general it is better to use a library macro rather th... View full answer
Get step-by-step solutions from verified subject matter experts
