hello.c (#3)

  #include <stdio.h>

  int main()
  {
     printf("Hello world!\n");
     return 0;
  }
  • The printf statement resides inside the stdio.h library. So, we have to let the computer know that we're going to use this library.
  • What is library? Think of it like collections of pre-made commands for you to use. C/C++ comes with standard libraries to ease you.

 


Where to go

Chapter 2
News Page
Lesson 1 contents
Contacting Me


Roby Joehanes © 2001