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.

define directive is used to create macros in c program.

const is reserved keyword which is used to define constant variable.

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