Sunday 25 May 2008

C: Hello, World!

gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)

#include <stdio.h>

int main() {
    printf("Hello, World!\n");
    return 0;
}

3 comments:

  1. I'm assuming you did this by hand in vim or something. Do you know if there's a semi-decent c/c++ ide for linux?

    ReplyDelete
  2. I haven't done any serious C/C++ work on Linux, so I tend to use a text editor and the command line. This Wikipedia article might help your search: Comparison of IDEs.

    ReplyDelete
  3. Heh. I should have thought that. Thanks for the link :).

    ReplyDelete

All comments are moderated