engineering computer science MCQ #2140

What is the purpose of `extern` keyword?

engineering computer science MCQ #2140

  1. Question 1

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

    • 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 is used to declare a global variable or function that is defined elsewhere.