engineering computer science MCQ #2144

What is the purpose of `#include` directive?

engineering computer science MCQ #2144

  1. Question 1

    Q1. What is the purpose of `#include` directive?

    • A) To include a library for compilation
    • B) To include a file for preprocessing
    • C) To link object files
    • D) To define macros

    Answer: To include a file for preprocessing

    Explanation: The #include directive includes a file during the preprocessing stage. NET computer science MCQs often test this core concept.