The preprocessor directive ________ is used to include libraries in a C program.
- #define
- #ifdef
- #include
- #pragma
The correct answer is (b) #include. In C, the #include preprocessor directive is used to include libraries or header files. This allows you to use functions and definitions from those libraries in your program.
Loading...
Related Quiz
- What is the standard notation for passing command line arguments in a C program?
- Pointer arithmetic in C is based on ________, which means that the pointer is incremented or decremented by the size of the data type it points to.
- You are tasked with optimizing memory usage in a real-time application that processes complex data structures. How can pointers assist in achieving this goal?
- In what scenario would using a nested structure be beneficial?
- You are working on a program that processes user input, and you want to ensure that the input string does not exceed a certain length to prevent buffer overflow. Which string handling function would be appropriate to use?