engineering computer science MCQ #2152

The `static` keyword in C is used to

engineering computer science MCQ #2152

  1. Question 1

    Q1. The `static` keyword in C is used to

    • A) declare a constant variable
    • B) retain the value of a variable between function calls
    • C) make a variable global
    • D) make a function inline

    Answer: retain the value of a variable between function calls

    Explanation: Static variables retain their values between function calls. NET computer science MCQs often test this core concept.