Open In App
Related Articles

C | Storage Classes and Type Qualifiers | Question 12

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

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

Last Updated : 15 Feb, 2013
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads