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

Discussion

Overloading a name means that

  • A.several declarations share a name and are distinguished by signature
  • B.an inner declaration hides an outer one of the same name
  • C.the same storage location is reachable through two different names
  • D.a name gets used somewhere before it has ever been declared

Answer: A

Overload resolution selects among the candidates using the argument types at the call. The symbol table must therefore be able to hold several entries under one name. A chain of candidates under one key is the usual arrangement.

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

Post your comment

Please log in or register to post a comment.