Pro-Sequence
LeetCode
CodeChef
CodeForces
HackerEarth
Placement
Tutorial
Blogs
Codes
CPA
Recently visited pages.
×
Tutorials
C
Hello-World-In-C
Introduction
History of C Language
How to Install C
Hello World In C
scanf and printf in C
Variables in C
Data Types in C
C Operators
Comments in C
Format Specifier in C
Escape Sequence in C
Written by -
Vanshika Yadav
Hello World In C
#include<stdio.h> int main() { printf("Hello World"); return 0; }
Lets understand the code in detail.
#include<stdio.h>
: This include the header file (stdio.h)which contains the declarations of standard I/O function.
int main()
: It is the main function from where the execution of c program begins.
{
: Indicates the beginning of main function.
printf("Hello World");
: This command prints the output on the screen.
return 0;
: This command is used to terminate a C program and it returns 0.
}
: It is used to indicate the end of the main function.
More Tutorials
Java
Memcached
C
Reactjs
BootStrap4
Rust