1

What does the 'static' keyword do when applied to a local variable inside a function?

Correct Answer: Ensures the variable retains its value across function calls

Make the most of this question

This page focuses on one C++ MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

C++ MCQs MCQ: What does the 'static' keyword do when applied to a local variable inside a function? | Extra Education