adplus-dvertising
frame-decoration

Question

Which of the following are correctly formed #define statements?

a.

#define INCH PER FEET 12

b.

#define SQR(X) (X *X);

c.

#define SQR(X) X*X

d.

#define SQR(X) (X*X)

Posted under C Programming

Answer: (d).#define SQR(X) (X*X)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following are correctly formed #define statements?