← codetypingtest

C typing test

C is small, close to the machine and full of punctuation. Typing it means #include lines, pointers with * and ->, printf format strings with %d and \n, and a semicolon after almost everything. It's a great language for practising the number-row symbols that most typing tests never touch.

Start the C typing test

What you'll type in C

Example: FizzBuzz in C

Every printf string ends with \n, so this short program has you type a backslash four times. It also returns 0 from main to signal success.

#include <stdio.h>

int main(void) {
    for (int i = 1; i <= 15; i++) {
        if (i % 15 == 0) printf("FizzBuzz\n");
        else if (i % 3 == 0) printf("Fizz\n");
        else if (i % 5 == 0) printf("Buzz\n");
        else printf("%d\n", i);
    }
    return 0;
}

Type this program now

Tips for typing C faster

All 20 C programs

Every program is real, working C. Choose one to start typing it straight away.

Beginner

Intermediate

Advanced

Expert

How the test works

The timer starts on your first key and stops once every character is right. Press Enter for a new line and the indentation is filled in for you. A wrong key shows in red and counts as a mistake; press Backspace to go back and fix it. Your best time for each program is saved in your browser. Read more about how speed and accuracy are calculated, or get tips for typing code faster.

Other languages