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

Discussion

A header file contains macros, structure declaration and function prototypes.

  • A.True
  • B.False

Answer: A

Correct answer: True

A header typically carries exactly those three things - macros, type and structure declarations, and function prototypes - because they are what several source files need to share. What it should not carry is a definition that allocates storage or a function body, since including it in two files would then produce two definitions.

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

Post your comment

Please log in or register to post a comment.