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

Discussion

A compiler that supports separate compilation must ensure that

  • A.all modules are compiled by the same invocation of the compiler
  • B.the declarations seen in each module agree with one another
  • C.every module is compiled in a single pass over its source
  • D.the symbol table of one module is embedded in the next

Answer: B

Header files or module interfaces supply the shared declarations. When two modules disagree, the mismatch may not surface until link time or, worse, until run time. Shared interface files are the usual way of preventing such disagreements.

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

Post your comment

Please log in or register to post a comment.