Home / Questions / How to check whether macro is defined or not in a C program?
Explanatory Question

How to check whether macro is defined or not in a C program?

👁 697 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

#ifdef pre-processor directive checks whether particular macro is defined or not in a C program.