Hello World in C

C is the more classic and popular programming language that as ever existed. Developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories is the language used by Linus Torvals and the huge GNU community to create Linux itself and the most famous programs ever developed in the IT history

The king of C compiler, the GNU GCC, is installed by default on the Arietta microSD so you can compile directly on the board your sources.

To try it save the following example on a microSD folder with the name hello.c.

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

Compile it typing:

~# gcc hello.c -o hello

Then lauch it typing:

~# ./hello
Hello world !

Related links