What is the advantage of #define over const?

What is the advantage of #define over const?

What is the advantage of #define over const? mcq and its answer is provided on this page.

What is the advantage of #define over const?

Que. What is the advantage of #define over const?
a. a) Data type is flexible
b. b) Can have a pointer
c. c) Reduction in the size of the program
d. d) None of the mentioned
Answer: a
Explanation : None.


Comments