C/C++ Arena

Step 1 of 5

Your first program

Every C program starts running at a function called main. Inside it, printf prints text to the screen.

#include <stdio.h>

int main(void) {
    printf("Hi!\n");
    return 0;
}

Your turn: fill in the blank so the program prints Hello, World!.

Next: Printing your own text