Compiling hello.c

  • The program can be compiled using:
       gcc -o hello hello.c
  • For DOS or Windows variant:
       gcc -o hello.exe hello.c
  • Other programs can be compiled similarly. To run it, type:
       hello
  • What is the output?
    Hello world!
    |
    <-- This is the cursor.

 


Where to go

Chapter 2
News Page
Lesson 1 contents
Contacting Me


Roby Joehanes © 2001

Hosted by www.Geocities.ws

1