engineering computer science MCQ #2171

What is the purpose of `extern` keyword in C?

engineering computer science MCQ #2171

  1. Question 1

    Q1. What is the purpose of `extern` keyword in C?

    • A) To declare a global variable
    • B) To define a global variable
    • C) To declare a function
    • D) To make a variable constant

    Answer: To declare a global variable

    Explanation: extern declares a global variable or function that is defined elsewhere. NET computer science MCQs often test this core concept.