programming:c:hello_world
This is an old revision of the document!
Hello world !
Exercice 1
- Open a terminal
- Create your file by writing the following command
vim ex1.c
- Enter insertion mode by pressing Insert
- Write the lines below
#include <stdio.h> int main(){ printf("Hello world !\n"); return 0 ; }
- Then press Esc key
- Write :wq
- Compile your code with the following line
gcc -Wall ex1.c -o ex1
- Then run your programm by typing “./ex1” in the terminal
programming/c/hello_world.1375716418.txt.gz · Last modified: 2013/08/05 15:26 by zufd