adplus-dvertising
frame-decoration

Question

Choose a correct form of using C Conditional Compilation commands IF ELSE .

a.

#IF macroname
statement1;
statement2;
#ELSE
statement3;
statement4;
#END

b.

#IF macroname
statement1;
statement2;
#ELSE
statement3;
statement4;
#ENDIF

c.

#IFDEF macroname
statement1;
statement2;
#ELSE
statement3;
statement4;
#ENDIF

d.

#ifdef macroname
statement1;
statement2;
#else
statement3;
statement4;
#endif

Posted under C Programming

Answer: (d).#ifdef macroname
statement1;
statement2;
#else
statement3;
statement4;
#endif

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Choose a correct form of using C Conditional Compilation commands IF ELSE .