Q3 What is Conditional Compilation? how to use #ifdef #else #endif block by macro name.

L8Q3_What is Conditional Compilation

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!
Lokesh Kumar: Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.
Related Post
Leave a Comment

This website uses cookies.