Include the header common h the header is found in the same


Question: Write a preprocessor directive to accomplish each of the following:

a) Define symbolic constant YES to have the value 1.

b) Define symbolic constant NO to have the value 0.

c) Include the header common. h. The header is found in the same directory as the file being compiled. d) Renumber the remaining lines in the file beginning with line number 3000.

e) If symbolic constant TRUE is defined, undefine it and redefine it as 1. Do not use #ifdef.

f) If symbolic constant TRUE is defined, undefine it and redefine it as 1. Use the #ifdef preprocessor directive.

g) If symbolic constant TRUE is not equal to 0, define symbolic constant FALSE as 0. Otherwise define FALSE as 1.

h) Define macro CUBE_VOLUME that computes the volume of a cube. The macro takes one argument.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Include the header common h the header is found in the same
Reference No:- TGS02405567

Now Priced at $10 (50% Discount)

Recommended (95%)

Rated (4.7/5)