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

Discussion

Installing a placeholder entry for an undeclared name serves to

  • A.allow the program to be compiled successfully despite the error
  • B.record the name for the linker to resolve at a later stage
  • C.reserve storage for the variable in the target program
  • D.prevent the same error being reported at every subsequent use

Answer: D

One diagnostic per undeclared name is far more useful to the programmer than one for every occurrence of it, which in a long procedure could run to dozens of identical messages. No code is generated for a program containing such an error, so the placeholder affects only the reporting rather than the translation.

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

Post your comment

Please log in or register to post a comment.