Help for this page

Select Code to Download


  1. or download this
    #include <stdio.h>
    int main() {
       printf("Hello, World!\n");
       return 0;
    }
    
  2. or download this
    $ cc -o hello hello.c
    $ ./hello
    Hello, World!
    
  3. or download this
    $ cc -fno-common -DPERL_DARWIN -mmacosx-version-min=14.4 -DNO_POSIX_20
    +08_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/
    +local/include   -fno-common -DPERL_DARWIN -mmacosx-version-min=14.4 -
    +DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-st
    +rong -I/usr/local/include  -mmacosx-version-min=14.4 -fstack-protecto
    +r-strong -L/usr/local/lib -o hello hello.c
    
    $ ./hello