In this tutorial, we will discuss Hello world program in C programming language
Hello, word program is a very simple program for beginners in C language with few lines of coding and is easy to understand.
If you want to run this program on your system, you must have a text editor and compiler of C language.
#include <stdio.h>//header file for stranded input output int main()//main method in C language { printf("Hello world!\n");//display statements getch(); return 0;//return statements }
When the above code is executed, it produces the following results:
Hello world!
We can divide the program of 5 section for easy to understand the program flow
Header file
#include<stdio.h> is a header file for standard input and output library functions. The print() and scanf() pre-defined functions are defined in this header file
Main function
void main() – This is the main function in C Language. the void is a return statement and void never returns a value. main() is the main method and it indicates the start of execution of the program. So main is the Entry point to the every C program.
Some pre-defined functions
getch()- used to clean the screen
Return statements
return 0; – This is the ending point of every C Program
Suggested for you
Nested for loop in C++ language
Nested for loop in Java language
Nested for loop in Python language
PHP Star Triangle pattern program In this tutorial, we will discuss about PHP Star Triangle…
PHP Full Pyramid pattern program In this tutorial, we will discuss about PHP Full Pyramid…
5 methods to add two numbers in Java In this tutorial, we will discuss the…
Python full Pyramid star pattern program In this tutorial, we will discuss the concept of…
Write a function or method to convert C into F -Entered by the user In…
How to write a function or method to convert Celsius into Fahrenheit In this tutorial,…
View Comments
Wow, great blog article.Really thank you! Really Great.