The default storage class for functions in ‘C’ language is:
2017
The default storage class for functions in ‘C’ language is:
- A.
Static
- B.
Register
- C.
Extern
- D.
Auto
Attempted by 764 students.
Show answer & explanation
Correct answer: C
By default, all functions declared or defined in C have a global scope and are accessible across different files. This means their default storage class is extern. It allows a function to be called from any part of the program unless it is explicitly restricted using the static keyword.
Thus, the correct option is C.