Vidyalelo
C++ Programming · Q26

Functions and Procedures in C++

Programming · C++ Programming · question 26

Q26

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
Answer
C.
It indicates that the function is a member function
D.
It allocates memory for the function

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board