History
History
Structure of C
By: Karna Bahadur Shrestha
The history of C language goes back to 1960’s, when a number of computer languages were
being used for various purposes. COBOL (Common Business-Oriented Language) was being used
for commercial purposes, FORTRAN (Formula Translation) was being used for scientific and
engineering applications and so on.
Most of the modern languages including C are derived from the algorithmic language called
ALGOL which was developed by international group and introduced in 1960’s.
Martin Richards in 1967 developed programming language called BCPL (Basic Combined
Programming Language) which was derived from ALGOL. Similarly, BCPL influenced
development of programming language called B by Ken Thompson in 1970.
In 1972, Dennis Ritchie introduced “Traditional C” and it was confined to use within Bell
Laboratories until 1978.
In 1978, Brian Kernighan and Dennis Ritchie published a book called “The C Programming
Language”. The book was so popular and the use of C started spreading. C Language at that time
is commonly referred to as “K&R C”.
In 1983, the American National Standards Institute formed a committee to produce a C
programming language standard. This “ANSI C” was completed in 1988, and was approved in
1989. It was then approved by the International Organization for Standardization (ISO) in 1990
Documentation Section
Link Section
Definition Section
Global Declaration Section
main() function Section
{
Declaration Part
Execution Part
Function 1
Function 2
-----------
--------------
Function N
Documentation Section
This section contains a set of comment lines giving the name of the program, the author,
algorithms, method used and other details. This will be useful in future for users and developing
teams. The documentation acts as a communication medium between members of the development
team when a number of developers is working in the same project.
For example.
/* Author:Karna
Program to calculate area of rectangle.
Created at 2021-4-26 */
Definition Section
All symbolic constants are defined in this section.
#define PI 3.14
/* Author: Karna
Created at:2021-04-26
Program that calculates area of circle
*/
int main()
{
int radius=5; //variable declaration
float area; //variable declaration
area= PI*radius*radius;
printf("The area of circle is: %f",area);
return 0;
Note: All the section except main() and header declaration may be absent when they are not
required.