Program to print simple message Using C Program
/*program to print simple message using c program*/
#include<stdio.h>
void main()
{
printf("Hello world");
printf("Welcome To C Programming");
getch();
}
Welcome Friends, Hi am Sachin This is my first post my intention of starting this blog is to
share an knowledge something known to me and my blogs first post contains about C program.
Explanation about the C program According to the Structure:
#include<stdio.h> is an preprocessor directive which includes or tells an compiler to include an standard input and output files to be included in an program.
Which includes printf() and scanf() functions and other I/O functions.
void main() Is an Starting point of an c program,Every C program will Start with this function.
It is an first function which is executed in program.
"{" symbol indicates an start of an C program.
"}" Symbol indicates an End of an C Program.
printf() which is used for printing messages on the Screen.It also used for providing an guidelines to the user.It can be terminated using an semicolon(;).
scanf() which is used for an taking an input from the user.It can be terminated using an semicolon(;).
getch() Function is used for an displaying an input character on the screen/for holding an execution screen,if it was not been included then it will not shows an output the screen will automatically terminates itself.It can also be terminated using an semicolon(;).
#include<stdio.h>
void main()
{
printf("Hello world");
printf("Welcome To C Programming");
getch();
}
Welcome Friends, Hi am Sachin This is my first post my intention of starting this blog is to
share an knowledge something known to me and my blogs first post contains about C program.
Explanation about the C program According to the Structure:
#include<stdio.h> is an preprocessor directive which includes or tells an compiler to include an standard input and output files to be included in an program.
Which includes printf() and scanf() functions and other I/O functions.
void main() Is an Starting point of an c program,Every C program will Start with this function.
It is an first function which is executed in program.
"{" symbol indicates an start of an C program.
"}" Symbol indicates an End of an C Program.
printf() which is used for printing messages on the Screen.It also used for providing an guidelines to the user.It can be terminated using an semicolon(;).
scanf() which is used for an taking an input from the user.It can be terminated using an semicolon(;).
getch() Function is used for an displaying an input character on the screen/for holding an execution screen,if it was not been included then it will not shows an output the screen will automatically terminates itself.It can also be terminated using an semicolon(;).
Comments
Post a Comment