Which preprocessor directive would be used to conditionally compile certain blocks of code?

  • #define directive
  • #ifdef directive
  • #include directive
  • #pragma directive
The #ifdef directive is used to conditionally compile code based on whether a certain macro has been defined. It allows you to include or exclude specific code blocks based on preprocessor macros.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *