C programming language
Hi everyone,
Today we are going to learn about the c programming language.the basic structure of c programming language is
Documentation section
Link section
Definition section
Global Declaration section
Main() function section
{
Declaration part
Executable part
}
Subprogram section
{
User defined Functions
}
Here in documentation section we write about the comments which starts with
/*........
...........*/
Here we write about the author name and date and other details.
The link section consists of compile link to the system library like #include<stdio.h>
The definition section consists of definition of various variables like pi etc whose value is constant in the program.
The Global Declaration consists of global variables .The various variables whose values are used throughout the program.
From Main the execution starts.
Let's write are first program
#include<stdio.h>
main()
{
printf("hello viewer ");
}
Output:
hello viewer
Here stdio.h is standard input output header file to take input or show output on console. printf is function to print something on console.
For further on c programming just stay tune.Thanks for viewing the blog.
Comments
Post a Comment