Examveda

What is the purpose of the 'static' keyword in a function declaration in C++?

A. It allows a function to be accessed from other files

B. It restricts the scope of the function

C. It indicates that the function is a member function

D. It allocates memory for the function

Answer: Option B


Join The Discussion

Related Questions on Functions and Procedures in C plus plus