Introduction to C Programming

C is a procedural programming language or significant level programming language. It was at first evolved by Dennis Ritchie in the year 1972. It was for the most part evolved as a framework programming language to compose a working framework. The principle highlights of C language incorporate low-level access to memory, a straightforward arrangement of catchphrases, and clean style, these highlights make C language appropriate for framework programming resembles a working framework or compiler improvement. Numerous later dialects have obtained linguistic structure/includes legitimately or by implication from C language. Like grammar of Java, PHP, JavaScript, and numerous different dialects are mostly founded on C language. C++ is about a superset of C language.

Advantages of C Compiler

Robust Language: C is a hearty language which has a rich arrangement of implicit capacities and administrators that can be utilized to compose any intricate program. The C compiler consolidates the abilities of a low level computing construct with the highlights of significant level language. In this way, it is appropriate for composing both framework and application bundle. 

Efficient and Fast: Programs written in c are effective and quick because of its assortments of information types and incredible administrators. 

Highly Portable: C is exceptionally convenient, implying that C programs composed for one PC can be run in another PC with next to zero alterations. 

Structured Language: C is an organized language as it has a fixed structure. C program can be partitioned into various modulus or squares. A legitimate assortment of these modulus would make a total program. Because of the organized program, investigating, testing and support is simpler and quicker. 

Extendibility: C program may contain various client characterized capacities. We can include our own client characterized capacities to the C Library whenever required. 

Middle Level Language: C is center level language since it joins the best piece of elevated level language with low level language. It is appropriate for composing both client and machine situated projects and gives limitless prospects.

Brary : There are huge individuals from worked in capacities, watchwords and administrators in C's System Library sorted out in various header records. Utilizing worked in capacities, we can spare our exertion and diminish the size of the program.

Difference Between Compiler And Interpreter

S.N. Compiler Interpreter
1 Compiler scans the entire program before translating it into machine code. Interpreter translates and executes the program line by line.
2 It takes less execution time. It takes more execution time.
3 Syntax errors are found only after the compilation of complete program. Syntax errors can be trapped after translation of every line.
4 Compiler does not allow a program to run until it is completely free. Interpreter runs the line program form first line and steps execution only if it encounters an error.
5 Run compiler once and it runs anytime. Compiled program does not need to be compiled every time. Interpreter programs are interpreted line-by-line every time they run.
6 A compiled language is more difficult to debug. Debugging is easy because interpreter stops and reports 
7 Example of programming languages that use compilers: C, C++, COBOL. Example of programming languages that use interpreters: BASIC,VISUAL BASIC, python, Ruby, PHP, Perl, MATLAB, Lisp errors as it encounter them.

0 Like 0 Dislike 0 Comment Share

Leave a comment