Q. What is the purpose of the 'static' keyword in C++?
β
Correct Answer: (C)
To limit the scope of a variable to its function
Explanation: The 'static' keyword in C++ is used to limit the scope of a variable to the function or file in which it is declared.