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
| C development | |
| Textbook on C | |
| Boolean in C | |
| Sockets in C | |
| K&R | |
| What is argc, char * argv[] | |
| Function scanf() | |
| Pointers | |
| Structures in C | |
| Operator «arrow» pointer to member structure |