I remember almost five years back, i met a group of programmer friends who dared not to write any C code because they considered it some sort of black art reserved for only brainy and guru programmers. But through a series of enlightenment now i have put all those thoughts behind me. I have started programming in C and this is my first program. I am not saying the road is going to be smooth, that i know, but i am just saying, i do not see myself relenting in my efforts to program the best of C and Ruby that i can.
1 /* This is an hello world program */
2 #include <stdio.h>
3 int main(void)
4 {
5 printf(“Hello World\n”);
6 return 0;
7 }
To compile the code, cc -c
To make it executable, cc -o hello hello.c
To run it , ./hello

No comments yet
Comments feed for this article