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

Discussion

If no storage class is specified for a local variable, the default is auto.

  • A.true
  • B.false
  • C.Depends on the standard
  • D.None of the mentioned

Answer: A

Correct answer: true

A variable declared inside a block with no storage class is auto - on the stack, uninitialised, and gone when the block ends. The keyword is almost never written, precisely because it is the default.

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

Post your comment

Please log in or register to post a comment.