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

Discussion

A symbol table entry's storage class attribute records

  • A.the hash bucket in which the entry has been placed
  • B.whichever source line carried the declaration of the name
  • C.whether the name is static, automatic or external
  • D.the number of bytes the name occupies in memory

Answer: C

The storage class determines where the variable lives and how long it persists. Code generation needs it to decide between a static address and a stack offset. The class also determines whether the variable survives between calls.

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

Post your comment

Please log in or register to post a comment.