hello.c (#4)

  #include <stdio.h>

  int main()
  {
     printf("Hello world!\n");
     return 0;
  }
  • The return tells us that we're done and want to return to the caller, which is the operating system in this context.
  • The number 0 here is the number we return back to the operating system. Usually, operating system expects a zero if there is no error.

 


Where to go

Chapter 2
News Page
Lesson 1 contents
Contacting Me


Roby Joehanes © 2001

Hosted by www.Geocities.ws

1