SIZ Education | Advantages Of C++ And Why We Use C Language For Programming | 20% reward to @siz-official
Hi Steemians!
Greeting to all, hope you are well and enjoy happy life. I am also good Alhamddulillah. |
---|
In today's post I will tell you about language processor and translator and its standby and also I will tell you about the advantages of C language.
So Let's Start:
First of all we discuss language processor or translator and their use.
Translator
Computer understands only machine language. A program written in high level for assembly language cannot be run on a computer directly. It should be changed over into machine language before execution. Language processor or interpreter is a kind of framework programming those changes over these projects into machine language. Each coding languages has its own interpreters.
Types of translators:
- Compiler
- Interpreter
- Assembler
1. Compiler:
A compiler is a program that changes over the guidance of a general language into machine language overall. A program written in significant level language is called source program. The compiler changes over the source program into machine code. The machine code is known as item program. The object program can be executed many times .The compiler checks each statement in the source program and generates machine instructions. Compiler also checks Syntax error the program. A computer can translate the programs of one those language for which it is written. For example C compiler can translate only those programs that are detailed in C language.
2. Interpreter:
An interpreter is a program that translates one instruction of the program at a time. It converts the instruction into machine language and executes it then moves to the next instruction of the program. It displays the error message is there is an error in the instruction. The benefit of mediators over compilers is that a mistake is found right away. The software engineer can address the blunders during program advancement. The detriment of translator is that it isn't exceptionally effective. The translator doesn't create an item program. It changes over the guidelines into machine language each time it is executed. Fundamental language is utilized is mediator.
3. Assembler:
A constructing agent is an interpreting program that deciphers the guidance of low level computing construct into machine language.
Now we will discuss about the advantages of C language.
Advantages or characteristics of C language
License
i. Convenient language:
C is very convenient language. it provides many facility in easy easier way that are difficult to use in low level languages programmer can write Complex programs more easily as compared to low level languages.
ii. Well-structured language:
C is an all-around organized language its Syntax is exceptionally straightforward the projects written in C language are not difficult to keep up with and adjust.
iii. Machine Independence:
C language provides machine Independence.it means that the programs written in C language can be executed on different types of computers. For example a program written in C can be executed on Intel processors and Motorola processes.
iv. Modularity:
C language provides the facility of modular programming .It means that the program can be divided into small module. These modules can be created and accumulated freely.
v. Case sensitivity:
C is a case sensitive language. It implies that it can separate capitalized and lowercase words. All keywords are written in lowercase. This feature makes it easier to maintain the source code.
vi. Hardware control:
C language provides close control on hardware. It tends to be utilized to compose proficient projects to control equipment parts of PC framework.
vii. Small language:
C is a small language. It has few catchphrases and programming controls yet at the same time it is exceptionally incredible for creating various sorts of projects.
viii. Fast code Generation:
The compiler of C language generates very fast code. The code executes very efficiently.
Why we write program in C language rather then machine language?
License
Two reason given below:
Easier way to write programs:
C language is a high level language. It is easier to write programs in C then machine language. The programs in machine language consist of 0 and 1.It is very difficult to write modify and manage programs in machine language. The instructions of C are similar to English language, so it is preferable to write program rather than machine language.
Machine Independence:
C language provides machine Independence. It implies that the program written in C language can be executed on various kinds of PCs. For example, a program written in C can be executed on Intel processors and Motorola processes. That is why it is preferable to write program in C language other than machine language.
Now I will tell you and show you the best C programming software. I prefer you to write programming C language in Dev C++. This software very easy to learn. I show you the main page of this software.
I hope you will understand very clearly. Thank you so much for watching my post.
Special Thanks:
@siz-official
@cryptokraze
@suboohi
@vvarishayy
@ashkhan
Good one Post dear friend you make a very good post thanks for sharing a good information with us my best wishes for you.
Regards, Faran Nabeel
Thank you for your kind words.