Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

C | Storage Classes and Type Qualifiers | Question 12

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

In C, static storage class cannot be used with:
 

(A)

Global variable
 

(B)

Function parameter
 

(C)

Function name
 

(D)

Local variable
 


Answer: (B)

Explanation:

Declaring a global variable as static limits its scope to the same file in which it is defined. 
A static function is only accessible to the same file in which it is defined. 
A local variable declared as static preserves the value of the variable between the function calls.
 


Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Last Updated : 15 Feb, 2013
Like Article
Save Article
Similar Reads