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

Discussion

Is it true that a function may have several declarations, but only one definition?

  • A.Yes
  • B.No

Answer: A

Correct answer: Yes

A prototype may appear in every file that calls the function, and usually does by way of a header, but the body is written once. The rule is the same as for objects: declarations may be repeated, and the definition may not.

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

Post your comment

Please log in or register to post a comment.