Q. What does the 'static' keyword do when applied to a local variable inside a function?
β
Correct Answer: (B)
Ensures the variable retains its value across function calls
Explanation: A 'static' local variable retains its value across multiple function calls.