Sep 8, 2024
clear
hello.c
.c
denotes a C programming language filei
Esc
#include <stdio.h>
int main() {
// Code goes here
}
printf("Hello world!\n");
\n
is a newline characterreturn 0;
:wq
gcc
gcc hello.c
./a.out
Hello world!
main()
is the entry point of the programprintf
with \n
moves cursor to the next line