LearnFrenzy
Sign in Take a free test

C Library Functions · Library Functions MCQ · Question 3

What does a header file contain? Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 3 Back to Exercise

What does #include <string.h> actually bring into your program?

  • A The compiled code of every string function
  • B Declarations (prototypes, types, macros); the code itself is linked from the C library Correct
  • C Nothing – it is only documentation
  • D A copy of the library's source code
Correct Answer: Option B

The compiler needs the declarations to check calls; the linker supplies the implementation from the library.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links