Then.. Follow the instruction below, Please Follow it Carefully
Click to enlarge images
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Please Read this note carefully
Preprocessor
#include <stdio.h>
•Lines
beginning with # are processed by the preprocessor before the program is compiled.
•This tells
the preprocessor
to include the contents of the standard input/output header (<stdio.h>) in
the
program.
•This header contains information used by
the compiler when compiling calls to standard input/output
•library functions
such as
printf
Main function
int main()
{
...
}
•The
parentheses after main indicate that main is a program building
block
called a function. C
program must have
at least one main function, because this is the first function that will be
executed.
•Functions
can return information.
•The keyword int to the
left of main indicates that main “returns” an
integer (whole number) value.
•Functions
also can receive information when they’re called upon to execute.
The Statement
printf("Hello World! \n");
•This
statement instructs the computer to perform an action, namely to print on the screen the string of
characters marked by the quotation marks.
•The entire
line, including printf, its argument within the parentheses and the semicolon (;), is called a
statement.
•Every statement must end with a semicolon.
•When the
preceding printf statement is executed, it prints the message Hello
World! on the screen.
Escape Sequence
\n
•It indicates
that printf is supposed to do something out of the ordinary.
•When encountering
a
backslash in a string, the compiler looks ahead at the next character and
combines
it with the backslash to form an escape sequence.
•The escape
sequence \n means newline.
•There are
other escape sequence, \t for tab, \\ to display backslash, \” to display
double quotes
return 0;
•We use
keyword return to exit a function.
•The value 0
indicates that the program has terminated successfully
11.
12.
Finally you have made a hello world! program in C :))










