Question

In C, declaring a global variable using the 'static' keyword, as in 'static int counter,' at file scope, ensures that:

A The variable is stored exclusively in a CPU register for faster access
B The variable is automatically shared across all functions in the program without restriction
C The variable becomes a constant and cannot be modified
D The variable's linkage is restricted to the file in which it is declared
E The variable's memory is freed immediately after the program's main function starts
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)