Introduction to C Language

Introduction To C Language

Let us learn how we communicate with each other first then it will become easier for us to learn about how we communicate with the machine and how the machine comes to know what to do and what not to do.


Language

Language is a mode of communication through which two systems communicate with each other. For instance, Human beings communicate with each other in the language they know like Hindi, English, French, Spanish, etc. 

A language barrier occurs when both the system know different languages. Suppose the person whom you talking does not understand your language then it will become difficult for both of you to understand the conversation. In this case, we take the help of a translator.

Somewhat all the computer languages work the same way that translates the source code into machine code. The process of this translation is known as compilation or interpretation.


Introduction to C Language

C is a middle-level programming language which is used for general-purpose programming. C language was developed by Dennis Ritchie at Bell Laboratory in 1972.

The ANSI (American National Standards Institute) had formalized the C programming language in 1988. C programming language had been written in assembly language.

C programming language was invented to write UNIX Operating system. LINUX OS, PHP, and MySQL are written in C programming language.


History of C Language

1. C programming language was written in 1972 in Bell Laboratories by Dennis Ritchie. 

2. The major part of C Programming language was written by taking the help of the Contemporary BPCL language also known as B language.


Features of C Language

1. C language programs are fast and efficient because C gave us a rich set of operators and data types and with the help of operators we can write an expression in short. A short-expression is executed very fast as well as it occupies less amount of memory.

With the help of a rich set of data types, a programmer can choose the appropriate data type according to the range of its program. This also helps in saving the memory space and the programs become efficient also.

2. C programming language is a middle-level language. A high-level language is used to make application software. This application software is used by the users. 

System software is the software that is to be used by the computer itself which is made in a low-level language.

Generally, a high-level language does not support the feature of low-level language and low-level language does not support the features of high-level language

C programming language has the features of both the language high-level language as well as low-level language which makes it a middle-level language.

3. C programming language is a portable language. It is a machine as well as a platform-independent language. This means that C programming language programs do not depend upon machines and platforms and are independent. 

A program made for a computer system having some configuration and platform can easily be run on another computer system having different configurations and platforms.

4. C programming language is a robust language. There are only 32 keywords in C programming language but most of the work is done by using functions. 

These functions are built-in functions at the same time programmers can make their also. So, the ability to grow itself makes C programming language a robust language.

5. C programming language is a modular language.  It means that C language lets users make their programs into smaller modules. These modules are called functions. 

By making a program like this, the three tasks of the software development process become easy. The tasks are :
  • debugging of software.
  • testing of software.
  • maintenance of software.


Advantages of C Language

1. C programming language is the building block of many other programming languages.

2. Programs written in C programming language are highly portable.

3. Several in-built functions of C programming language can be used to develop programs.

4. It is easier to add our own functions to C programming language library.


Disadvantages of C Language

1. C programming language does not support Object-Oriented Programming (OOP) concepts.

2. There is no concept of namespace in C programming language.

3. C programming language does not provide wrapping up data in a single unit.

4. C programming language does not have Constructor and Destructor. 



                                                                                                              Next >>
Previous
Next Post »