The default storage class for functions in ‘C’ language is:

2017

The default storage class for functions in ‘C’ language is:

Answer: C. ExternBy 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…

  1. A.

    Static

  2. B.

    Register

  3. C.

    Extern

  4. 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…