The default storage class for functions in ‘C’ language is:
2017
The default storage class for functions in ‘C’ language is:
Answer: C. Extern — 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…
- A.
Static
- B.
Register
- C.
Extern
- D.
Auto
Attempted by 1301 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.
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…