This Domain is For Sale

Approximately what is the line #include <stdio.h> at the top of a C source file

  • 0 replies
  • 354 views
*

Offline mechanic

  • Engineer
  • *****
  • 3420
  • Gender: Male
  • Engineer
    • View Profile
    • Engineering Forum
Approximately what is the line #include <stdio.h> at the top of a C source file for?

Answer: In the case of our first few programs, it lets the compiler know some important information about the library function, printf. It also lets the compiler know similar information about other functions in the ``Standard I/O library,'' some of which we'll be learning about later. (It also provides a few I/O-related definitions which we'll be using later.) We'll learn more about the #include directive when we cover the C Preprocessor in a few weeks.