Tsallaka zuwa abun ciki
Justice Tech School

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
//   ./hello

Exercise

Compile with gcc.

gcc hello.c  hello

Quiz Test

Which flag names the output file?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.