C language Get in Relationship with she

Before getting started with C programming, lets get familiarized with the language first.

This is a comprehensive guide on how to get started in C programming language, why you should learn it and how you can learn it.

What kind of programming language is C ?

We all know C is a programming language designed and written by Dennis Ritchie in 1972.That means that you can use C to create lists of instructions for a computer to follow.

C has been around for several decades and has won widespread acceptance because it gives programmers maximum control and efficiency. C is simple, reliable and easy to use.

General-purpose Programming Language C is a general-purpose programming language used for wide range of applications from Operating systems like Windows and iOS to software that is used for creating 3D movies. Procedural language

C is a procedural language in which instructions are given in steps to accomplish a task.

High Level Language

High level language is a programming language that is more user friendly , to some extent platform-independent and abstract from low level computer processor operations such as memory access . High level languages are easier to read .High level languages are machine independent and are problem-oriented.

Compiled language

C is what is called a compiled language. This means that once you write your C program, you must run it through a C compiler to turn your program into an executable that the computer can run (execute). The C program is the human-readable form, while the executable that comes out of the compiler is the machine-readable and executable form. What this means is that to write and run a C program, you must have access to a C compiler.

The History of the C language

The C programming language was devised in the early 1970's by Dennis M. Ritchie an employee from Bell Labs (AT&T).

In the 1960's Ritchie worked, with several other employees of Bell Labs (AT&T), on a project called Multics. The goal of the project was to develop an operating system for a large computer that could be used by a thousand users. In 1969 AT&T (Bell Labs) withdrew from the project, because the project could not produce an economically useful system. So the employees of Bell Labs (AT&T) had to search for another project to work on (mainly Dennis M. Ritchie and Ken Thompson).

Ken Thompson began to work on the development of a new file system. He wrote, a version of the new file system for the DEC PDP-7, in assembler. (The new file system was also used for the game Space Travel). Soon they began to make improvements and add expansions. (They used there knowledge from the Multics project to add improvements). After a while a complete system was born. Brian W. Kernighan called the system UNIX, a sarcastic reference to Multics. The whole system was still written in assembly code.

Besides assembler and Fortran, UNIX also had an interpreter for the programming language B. ( The B language is derived directly from Martin Richards BCPL). The language B was developed in 1969-70 by Ken Thompson. In the early days computer code was written in assembly code. To perform a specific task, you had to write many pages of code. A high-level language like B made it possible to write the same task in just a few lines of code. The language B was used for further development of the UNIX system. Because of the high-level of the B language, code could be produced much faster, then in assembly.

A drawback of the B language was that it did not know data-types. (Everything was expressed in machine words). Another functionality that the B language did not provide was the use of “structures”. The lag of these things formed the reason for Dennis M. Ritchie to develop the programming language C. So in 1971-73 Dennis M. Ritchie turned the B language into the C language, keeping most of the language B syntax while adding data-types and many other changes. The C language had a powerful mix of high-level functionality and the detailed features required to program an operating system. Therefore many of the UNIX components were eventually rewritten in C (the Unix kernel itself was rewritten in 1973 on a DEC PDP-11).

The programming language C was written down, by Kernighan and Ritchie, in a now classic book called “The C Programming Language, 1st edition”. (Kernighan has said that he had no part in the design of the C language: “It’s entirely Dennis Ritchie’s work”. But he is the author of the famous “Hello, World” program and many other UNIX programs).

For years the book “The C Programming Language, 1st edition” was the standard on the language C. In 1983 a committee was formed by the American National Standards Institute (ANSI) to develop a modern definition for the programming language C (ANSI X3J11). In 1988 they delivered the final standard definition ANSI C. (The standard was based on the book from K&R 1st ed.).

The standard ANSI C made little changes on the original design of the C language. (They had to make sure that old programs still worked with the new standard). Later on, the ANSI C standard was adopted by the International Standards Organization (ISO). The correct term should there fore be ISO C, but everybody still calls it ANSI C.

Why to learn C language ?

C is adopted as first step in learning programming language because it helps in understanding basic concepts and skills of programming before dealing with other complicated concepts.

Uses

  1. C is high level programming language with some low level features, so it is used in system programming.
  2. C is used in embedded programming.
  3. Used in logic building and understanding the memory parts of a software.
  4. Used in making Operating Systems.
(adsbygoogle = window.adsbygoogle || []).push({});