C Get Started
Install a compiler such as gcc or clang. Compile with gcc hello.c -o hello and run ./hello. Add -Wall -Wextra to see warnings and -g for debugging.
Example
#include <stdio.h>
int main(void) {
printf("Hello World\n");
return 0;
}
// Terminal:
// gcc -Wall hello.c -o hello
// ./helloExercise
Compile with gcc.
gcc hello.c hello
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.