Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

C | Storage Classes and Type Qualifiers | Question 12

  • Difficulty Level : Easy
  • Last Updated : 15 Feb, 2013

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.

Take a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked List and many more! Check out our Data Structures in C course to start learning today.
My Personal Notes arrow_drop_up
Recommended Articles
Page :