Hello world ! in C

C is a general-purpose computer programming language developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system. (read all...)

Hello world example

This is the “Hello world !” source code example.

#include <stdio.h>
 
int main(void) {
  printf("Hello world !\n");
  return 0;
}

Save it with in hello.c file then install the GCC compiler.

GCC Installation

To install the GCC compiler on your FoxG20 make sure your FoxG20 is connected to internet then type:

debarm:~# apt-get update
debarm:~# apt-get install gcc

Compile & run

debarm:~# gcc hello.c -o hello
debarm:~# ./hello
Hello world !

Video demo

See how to create, edit, compile and run this example using Windows.

 
tutorial/c.txt · Last modified: 2010/03/18 09:52 by asquini
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki