engineering computer science MCQ #2166

The `volatile` keyword is used to

engineering computer science MCQ #2166

  1. Question 1

    Q1. The `volatile` keyword is used to

    • A) declare a variable that can be modified by external factors
    • B) declare a constant variable
    • C) make a function inline
    • D) allocate memory dynamically

    Answer: declare a variable that can be modified by external factors

    Explanation: volatile keyword informs the compiler that a variable's value can change in ways not explicitly specified by the program.