Which keyword is used for storage class?

2025

Which keyword is used for storage class?

Answer: C. autoIn C programming, storage class specifiers define the scope and lifetime of variables. The keyword 'auto' is a valid storage class specifier used for…

  1. A.

    external

  2. B.

    scanf

  3. C.

    auto

  4. D.

    printf

Attempted by 686 students.

Show answer & explanation

Correct answer: C

In C programming, storage class specifiers define the scope and lifetime of variables. The keyword 'auto' is a valid storage class specifier used for automatic local variables. In contrast, 'scanf' and 'printf' are standard library functions, not storage classes. Additionally, 'external' is not a valid keyword; the correct term for external linkage is 'extern'. Therefore, 'auto' is the correct choice.

Explore the full course: Up Lt Grade Assistant Teacher 2025

Loading lesson…