Question: what is the difference between macro and constant in c?
Answer: 4 Answers. Macros are handled by the pre-processor - the pre-processor does text replacement in your source file, replacing all occurances of 'A' with the literal 8. Constants are handled by the compiler. ... For the actual compiled code, with any modern compiler, there should be zero performance difference between the two ...