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