Hello World in C
Lesson 1
Basic version
Create the hello_world.c file.
#include
int main(int argc, char* argv[])
{
printf("Hello, World!\n");
return 0;
}
Install the compiler. gcc and run it
gcc hello_world.c
./a.out
Result:
Hello, World!
Article author: Andrei Olegovich