First C Program — a practical guide to first C program Hello World with clear examples you can reuse in real projects.
C Programming Tutorial Series (8/102). Prefer one article? Read the complete C programming tutorial.
Short description
Confirm your toolchain works before learning language details.
Steps
- Create main.c.
- Compile with gcc.
- Run the executable.
Hello World
#include <stdio.h>
int main(void) {
printf("Hello, C!n");
return 0;
}