Examveda

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

A. Declares the function as a member of a class

B. Prevents the function from being called recursively

C. Defines the function to be inline

D. Retains the variable's value between function calls

Answer: Option D


Join The Discussion

Related Questions on Functions and Procedures in C plus plus