You are on page 1of 1

C intro

source: W3 schools

header file library that lets


#include <stdio.h> us use input and output
functions like printf() :
int main() {
#include <stdio.h>
printf("Hello World!");
return 0; function main() that executes
what’s between {} :
}
int main() {
note: every C statement ends function printf() to output:
with ;
printf("Hello World!");
note: multiple printf
to end the main function:
statements don’t start a new return 0;
line
}
start a new line:
printf("Hello World! \n "); \n new line
\t tab
\\ inserts “\”
\” inserts “””

Comments
m

C intro 1

You might also like