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;
}
#include <stdio.h>pulls in the standard input/output library, which is whereprintflives.\nis a newline: it ends the line.return 0;tells the operating system the program finished successfully.
Your turn: fill in the blank so the program prints Hello, World!.