1. over view and history of c

12,649 views 11 slides Nov 07, 2012
Slide 1
Slide 1 of 11
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11

About This Presentation

No description available for this slideshow.


Slide Content

Overview of C

History of Programming
•The root of all modern languages is ALGOL (introduce in
1960s).
•ALGOL uses a structure programming.
•ALGOL is popular in Europe
•In 1967, Martin Richards developed a language called BCPL
(Basic Combined Programming Language)
•Primarily BCPL is developed for system software
•In 1970, Ken Thompson created a new language called B
•B is created for UNIX os at Bell Laboratories.
•Both BCPL and B were “typeless” languages

History of C
•C was evolved from ALGOL, BCPL and B.
•C was developed by Dennis Ritchie at the Bell Laboratories
in 1972.
•Added new features and concepts like “data types”.
•It was developed along with the UNIX operating system.
•It was strongly integrated with the UNIX operating system.
•In 1983 American National Standards Institute (ANSI)
appointed a technical committee to define a standard for C.
The committee approved a version of C in December 1989
which is now known as ANSI C.
•In 1990 International Standards Organization (ISO) has
approved C and this version of C is referred to as C89.

History of C
ALGOL
BCPL
B
Traditional C
K&R C
ANSI C
ANSI/ISO C
C99
1960
1967
1970
1972
1978
1983
1990
1999
International Group
Martin Richards
Ken Thompson
Dennis Ritchie
Kernighan and Ritchie
ANSI Committee
ISO Committee
Standardization Committee

Importance of C
•Rich set of built-in functions
•Operators can be used to write any complex program.
•The C compiler combines the capabilities of an assembly
language with the features of a high-level language.
•It is well sited for writing both system software and
business packages.
•Due to variety of data types and powerful operators
programs written in C are efficient and fast.
•There are only 32 keywords in C and its strength lies in its
built in functions.
•C is highly portable.

Importance of C
•Ability to extend itself.
•C is a Structured Programming Language (requiring
the user to think of a problems in terms of function
modules or blocks).

First C program
#include<stdio.h>//Headerfile
main() //main function
{
/*…….printing begins……..*/
printf(“I see, I remember”);
/*……printing end…………*/
}
----------------------------------------------------------------------------------------------
-
•Stdio.h is a header file which is included in our program by writing
#include<stdio.h> in first line of program.
•main() is function where execution begins.
•Every program must have exactly one main function.
•“{” opening brace & “}” closing brace.
•printf(“ ”); is the only executable instruction.
•C is case sensitive.

Format of simple C program
main() //function name
{ //Starting of program
---
--- //Program statements
---
} //End of program
----------------------------------------------------------------------------------------------
The main() is a part of every C program. C permits different forms of
main statements
•main()
•int main()
•void main()
•main(void)
•void main(void)
•int main(void)

Executing a ‘C’ Program
1.Creating the program
2.Compiling the program
3.Linking the program with functions that are
needed from the C library
4.Executing the program

Compilation and Execution in C
CompilationCompilation
ExecutionExecution
EXEEXE
Source Source
CodeCode
Language Language
CompilerCompiler
Native Native
CodeCode

Thank You
Questions
&
General Discussion
Tags