If you have heard or read about the history and syntax of programming in C Language then you might be able to write a first program to print welcome message on output screen.
SYNTAX OF C LANGUAGE
Before you write any c language program, you must learn it syntax i.e. where to add comments, semi column, braces, header files etc. You must try to learn about its syntax vertically as it is describe below:
1. Header Files
2. Main Function
3. Start Curly Brace
4. PrintF Function (if printing on screen is required)
5. Scanf Function (if value entering is required)
6. Close Curly Brace
7. Comments, where is it required to tell anything important
/*This is my first program to print Welcome Message*/
/*Program is written by RapidForceAds*/
#include<stdio.h>
main()
{
printf(“Welcome to C Language\n”);
main()
{
printf(“Welcome to C Language\n”);
printf(“This is the output of your First Program”);
}
No comments:
Post a Comment