Basic step to know before starting C Language |Learn First Program of C Language Hello World
//comment:- You may apply comments in program anywhere that part will not executed.
//========= Type of Comments ==============
There two types of Comments
// 1. Single line:-In single line comment use double slash
/* 2.
multiple
line
*/
In Multiple line comments start with slash asterisk and end with asterisk slash
#include<stdio.h> //header file
stdio - standered input output.
h - extension for header file.
stdio.h -- file name
#include -- pre-processor.
#include<conio.h>
conio -- console input output
conio.h -- file name
// main function-- from where program get started.
// void -- is a retrun type // void tell no need to return
// main -- name of the function every function should have unique name.
// () --parenthesis -- representation of the function. OR parameters
// {} --curly bracket-- Body of the function or scop of the function.
//printf =>use for output
//scanf =>is use for input
#include<stdio.h>
int main()
{
printf("Hello word."); // Function calling -- this function in stdio.h
return (0);
}
Output:
Hello word
Output:
Hello word
If you found any mistake please write in comment box
Comments
Post a Comment