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

Discussion

A symbol table entry for an array type records

  • A.the element type and the bounds of each dimension
  • B.the values currently stored in the array's elements
  • C.the machine registers holding the array's elements
  • D.the number of times the array is indexed in the program

Answer: A

The element type and bounds together determine the width and the address computation. Values exist only at run time and are of no concern to the table. Bounds are also what a compiler needs in order to emit range checks.

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

Post your comment

Please log in or register to post a comment.