Introduction C
Introduction C
Introduction C
INTRODUCTION
Importance and Features of C
• ‘C is the base language of any
other programming language.
• To be a Good Programmer one must
know fundamentals of Cprogramming
language.
• Structure Programming
• Ability to Extend - own library
functions can be created.
• Programs are Efficient and Fast
• Highly Portable
• It is a robust language
History of ‘C’
• Root of the morden language is ALGOL 1960. It’s first
computer language to use a block structure.
• It gave concept of structured programming.
• In 1967, Martin Richards developed
a language, BCPL (Basic Combined
Programming Language)
• In 1970,by Ken Thompson created a language
called as ‘B’. It used to create early version of Unix.
• In 1972,by Dennis Ritchie introduced new
language called as ‘C’ .
1972 Traditional C Dennis Ritchie
BCPL
1967 Martin Richards
1972 Tradition
Debbis Ritchie
al C
ANSI&ISO
1990 C ISO Committee
Interpreter:
which analyzes and executes each line of
source code without looking at the entire
program.
Advantage of interpreter:
It can execute a program immediately.
Compilers require some time before an
executable program emerges.
But,
However, programs produced by compilers run
much faster than the same programs executed
by an interpreter.
C Compiler
Input Output
No1. &
PROGRAM No1 + No2
No2.
Algorithm
Specifies steps of doing the things
Irrespective of any programming language
Example: Addition of two numbers
Input/Output Rectangle
Decision Box
Connector
Flowchart-example
Example: To add two numbers and display the
result.
Start
End
Files:- storage of logically related data