C is a structural programming language. It was introduced by "Dennis Ritchie" in the year 1972. C language is a basic programming language, It has used to write some basic structure. It can be also called as a procedural programming language. It can be used to contain like the structural statements, looping statements, function, files.
Beginning with C
1. Structure of C language
2. Variable Declaration
3. Create Constants
4. Main body
5. Return Statements
Structure of C language:-
In a structure of C language. We can be used to write some predefined structure. Using this structure, the compiler will handle the compilation.
The following is the Structure of C is as follows:
1. Documentation Section
2. Linkage Section
3. Define Section
4. Global Declaration Section
5. Main function Section
*Declaration Part
*Execution Part
6. Sub programming section.
Documentation Section:-
In this documentation section, We have to see the set of comments. In a c programming, we have to write two types of comments. They are:
1. Single Line Comment.
2. Multiple Line Comments.
Linkage Section:-
In this linkage section. We have to used to link the header files like #include<stdio.h>, #include<math.h> and so on.
Define Section:-
In this define section, It gives the compiler to link the functions from the system library. It helps to the compiler to link the predefine functions from the system library.
Declaration Section:-
In this, the declaration section, We have to used to declare the variable and constants are used to declared.
Main function Section:-
In this, main function section, we have to write everything with in the main function. In this we can be used to declare the variables and values and also used to execute the programs
Declaration Part:-
In this, declaration part, We can be used to declare the variables and values are used to declare with in the declaration part only.
Execution Part:-
In this, execution part, We can be used to execute the program's in it. In a C program, every program must execute with in a main function only.
Sub programming Section:-
In a sub programming section, we can be used to write a sub functions. We can be used to write n number of sub programs or sun function in a C programming.
Variable Declaration:-
In a variable declaration, we can be used to create a variable and also used to assign the value to a variable. The variable is used to identify the value to the variable. The following the example for variable declaration is as follows:
EX:-
int a=10;
Create a Constants:-
Constants are a value or a variable which cannot be changed in the entire program. For example 10,20,10.4 and son on these are the constants
Constants are mainly three types. They are
1. Numeric Constants
2. Literal Constants
3. Identifier Constants
Main Body:-
The body of the function, in a C programming, refers to the operations that are performed in the function. It can be anything life manipulation, strings and so on.
A function is a group of statements that perform together tasks. It can be used to contain the block of statements. A function can be declared and can be called a function.
Return Statements:-
A return statement end with the execution of a function, return calling the function.
Advantages Of C Programming:-
* C is a high level programming language.
* C is a procedure oriented programming language.
* In C programming, the controller will execute the program in a main function.
* C is a Basic programming language.
* Easy to learn.
* Easy to design.
Disadvantages of a C Programming:-
* C is not a function oriented programming language.
*Difficult to related with real word objects.
Conclusion:-
C is a most useful for embedded system, or applications. Using the C programming, we can be used to design or develop the operating systems.
You must be logged in to post a comment.