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

Discussion

The variable declaration with no storage class specified is by default:

  • A.auto
  • B.extern
  • C.static
  • D.register

Answer: A

Correct answer: auto

With no storage class specified, a variable declared inside a block is auto. (At file scope the default is different: external linkage and static storage duration.)

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

Post your comment

Please log in or register to post a comment.