Question: what is the difference between #define and constant in c?
Answer: So when we define some macro using #define, it replaces into the code with its value before compilation. ... So when the compiler does not know anything about the code, in that time also the macro values are replaced. The constant is actually a variable.