Write your first program in C
C Code
Type in the following code using a text editor and save as main.c
.
Compile the code with your compiler.
#include <stdio.h>
main(){
printf("Hi \n");
}
The code above generates the following result.
The C program is a set of functions.
The program execution begins by executing the function main()
.