The ________ directive can be used in C to include a file only once in a program.

  • #ifdef
  • #ifndef
  • #include
  • #pragma
In C programming, the #include directive is used to include files in a program. When you want to include a file only once, you can use preprocessor directives like #ifndef and #define to create include guards.
Add your answer
Loading...

Leave a comment

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