Q3 What is Conditional Compilation? how to use #ifdef #else #endif block by macro name.
Program: 147
What is Conditional Compilation? how to use #ifdef #else #endif block by macro name.
Definition:
It is a process to skip the part of a source code, if macroname has been defined, the block of code (#ifdef) will be processed otherwise #else block.
Conditional Compilation
Example:
Output:
He is a boy. Good guess!