Which preprocessor directive is used to include a header file in a C program?
- #define
- #ifdef
- #ifndef
- #include
The preprocessor directive #include is used to include a header file in a C program. It allows you to use functions and declarations from the included file in your program.
Loading...
Related Quiz
- When defining a structure in C, which keyword is used?
- What does a nested structure in C allow you to do?
- How are the members of a structure accessed in C?
- Command line arguments are accessed in a C program using the parameters ________ and ________ in the main function.
- You're working on a C program that needs to manipulate and process data about a list of products in a store. Each product has several attributes like name, price, and quantity. What approach would you take to store and process this data efficiently?