Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which is not a storage class?

  • A.Auto
  • B.Struct
  • C.Typedef
  • D.Static

Answer: B

Correct answer: Struct

The storage classes in C are auto, register, static, extern and typedef - typedef being grouped with them by the grammar even though it names a type rather than allocating storage. struct is not among them: it introduces a type, and a structure variable still needs a storage class of its own.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.