hello.c

  #include <stdio.h>

  int main()
  {
     printf("Hello world!\n");
     return 0;
  }
  • This is our main function.
  • The program statements are enclosed within the curly brackets.
  • It has a return type of int.
  • Let's us ignore the return type for this moment. We'll discuss it further later.

 


Where to go

Chapter 2
News Page
Lesson 1 contents
Contacting Me


Roby Joehanes © 2001