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

Discussion

Where will the space be allocated for an automatic storage class variable?

  • A.In CPU register
  • B.In memory as well as in CPU register
  • C.In memory
  • D.On disk

Answer: C

Correct answer: In memory

An automatic variable lives on the stack, which is memory. The register class is the one that asks for a CPU register, and even that is only a request. A compiler may of course keep an automatic variable in a register as an optimisation, but the storage class itself specifies memory.

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

Post your comment

Please log in or register to post a comment.