Sunday, December 20, 2009

How to write C Program under Linux system

Editor : Using "vi"
Compiler : Using "gcc"

Hands-on
1. vi hello.c
2. start writing :
---------
#include
main(void){
printf("Hello C World !\n");
}
---------
3. Start compile :
---
#gcc -o hello.out hello.c
---
4. Start running :
---
# ./hello.out
---

5. Finished


C Program's IDE under linux system : RHIDE

No comments:

Post a Comment