|
|
|
|
History of C
C was created by Dennis Ritchie at the Bell Laboratories in the 1970.It was implementation on Unix Operating System.C was the development process of BCPL and B,developed by Martin Richards and Ken Thompson accordingly. Though, it has been closely associated with the Unix Operating System, C has been used equally well to write major programs in many different domains.
C is thought of as a middle-level language because it combines elements of highlevel languages with the functionalism of assembly language. C allows manipulation of bits, bytes and addresses - the basic elements with which the computer functions. Also, C code is very portable, that is software written on one type of computer can be adapted to work on another type. Although C has five basic built-in data types, it is not a strongly typed language as compared to high level languages. C permits almost all data type conversions. It allows direct manipulation of bits,
bytes, words, and pointers. Thus, it is ideal for system-level
programming.
The term block-structured language does not apply strictly to C. Technically, a block-structured language permits procedures and functions to be declared inside other procedures or functions. C does not allow creation of functions within functions, and therefore cannot formally be called a block-structured language. However, it is referred to as a structured language because it is similar in many ways to other structured languages like ALGOL, Pascal and the likes. C allows compartmentalisation of code and data. This is a distinguishing feature of any structured language. It refers to the ability of a language to section off and hide all. information and instructions necessary to perform a specific task from the rest of the program. Code can be compartmentalised in C using functions or code blocks. Functions are used to define and code separately, special tasks required in a program. This allows programs to be modular. Code block is a logically-connected group of program statements that is treated like a unit. A code block is created by placing a sequence of statements between opening and closing curly braces. |