Question

In C, declaring a variable inside a function using the 'static' keyword, as in 'static int count;', ensures that:

A The variable is automatically shared across all functions in the program
B The variable becomes a constant and cannot be modified
C The variable retains its value between successive calls to that function
D The variable is stored exclusively in a CPU register for faster access
E The variable's memory is freed immediately after each function call ends
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)