Question

What is the scope of a variable declared as "static" inside a function?

A It is local to the function and retains its value between function calls.
B It is global and can be accessed from any part of the program.
C It can only be accessed from within the same function.
D It can only be accessed from within other static functions.
Practice Next

Relevant for Exams:

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)