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

Discussion

A type expression in a compiler represents

  • A.the operations the target machine can perform on the type
  • B.the name the programmer gave to the type in the declaration
  • C.the structure of a type built from basic types and constructors
  • D.the number of bytes a value of the type occupies in memory

Answer: C

Arrays, pointers, records and functions are all type constructors applied to other type expressions. Comparing two such expressions is how structural type equivalence is decided. Recursive types require the comparison to guard against infinite descent.

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

Post your comment

Please log in or register to post a comment.