Hey There,
We are Happy to Announce that we would be explaining the First Ever Computer Program Which is so Famous,That it has became "The Father of All the Programs" and what is it For , Let's Find Out.
So the First Program we would be explaining to you in a brief description would be in a C programming environment, If you want to gain more insights you can read our previous blog
The Big Myth: I need to be a Hardcore Mathematician to be a great programmer
So Let's Begin,
We are Happy to Announce that we would be explaining the First Ever Computer Program Which is so Famous,That it has became "The Father of All the Programs" and what is it For , Let's Find Out.
So the First Program we would be explaining to you in a brief description would be in a C programming environment, If you want to gain more insights you can read our previous blog
The Big Myth: I need to be a Hardcore Mathematician to be a great programmer
So Let's Begin,
1: #include<stdio.h>
2: #include<conio.h>
3: void main()
4: {
5: printf("Hello World!");
6: }
Let us dissect the program written above
The 1st two lines act Like a dictionary for a program the names inside the angular brackets are the names of header files (.h behind a file name denotes its a header file).
The first header file stdio.h stands for Standard Input/Output
The second one conio.h works for Console Input/Output
The # character defines that its a pre-processor directive it's work is to process all that what is needed before the execution of the current program
The include keyword is used to add header files in the program
The 3rd Line has void main(), main is the function name
The function has a return type which in this case is void ( means , it doesn't return anything), and the name of the function is main, which is the starting point of all the C programs.
The function's body must start with an opening curly bracket and end with a closed curly bracket as done in 4th and 6th line.
The 5th line is responsible for displaying a "Hello World!"message on console , It contains printf() function which is used to print (display) any given text on the screen (screen as in console here) , Every line in the function body ends with a semi-colon as done here. A double quoted string is passed as a parameter to the function which is "Hello World!" in this Case.
We Hope that you would've made the most of it,That's it for now.
Stay Connected For More!
The first header file stdio.h stands for Standard Input/Output
The second one conio.h works for Console Input/Output
The # character defines that its a pre-processor directive it's work is to process all that what is needed before the execution of the current program
The include keyword is used to add header files in the program
The 3rd Line has void main(), main is the function name
The function has a return type which in this case is void ( means , it doesn't return anything), and the name of the function is main, which is the starting point of all the C programs.
The function's body must start with an opening curly bracket and end with a closed curly bracket as done in 4th and 6th line.
The 5th line is responsible for displaying a "Hello World!"message on console , It contains printf() function which is used to print (display) any given text on the screen (screen as in console here) , Every line in the function body ends with a semi-colon as done here. A double quoted string is passed as a parameter to the function which is "Hello World!" in this Case.
We Hope that you would've made the most of it,That's it for now.
Stay Connected For More!
Follow us on the following platforms:
Facebook at: facebook.com/Code-Forum-Blogs-627758557362138
Google+ at: plus.google.com/u/0/109055425984087943391
For Queries , Questions and Recommendations mail us at:codeforumblogs@gmail.com
Comments