Module-2
Introduction to ‘C’ Programming Language:
➢ Background/History of C Programming
➢ Basic structure of C program
➢ Executing a C program
➢ C-token- Keywords, Identifiers, Constant, var
special symbols
➢ Data types
➢ Operators
➢ Expressions
➢ I/O statements in C
, Background /History of C Programming
• The C programming language was designed by Dennis Ritchie at Bell Laborato
early 1970s.
• In 1972 Dennis Ritchie at Bell Labs writes C and in 1978 the publication
Programming Language” by Brian Kernighan and Dennis Ritchie caused a rev
the computing world.
• In 1983, the American National Standards Institute (ANSI) established a com
provide a modern, comprehensive definition of C. The resulting definition "AN
completed in 1988.
• Influenced by following previous High level languages • ALGOL 60 (1960
(Cambridge, 1963), • BCPL (Martin Richard, 1967), (Basic Combined Pro
Language) • B (Ken Thompson, 1970)
• BCPL and B are "type less" languages whereas C provides a variety of data type
• B language is modified by Ritchie and new Language is named as C
• C is a general-purpose language which has been closely associated with the U
which it was developed - since the system and most of the programs are writte
, Background /History of C Programming
Characteristics/Features of C Programming languages:
✓Direct access to memory layout through pointer manipulation.
✓Concise syntax, small set of keywords
✓Structured language
✓Use of Functions (Sub Program)
✓Type checking
✓C is portable(program written for one computer can be run on another c
with little modification)
✓C was invented to write operating system called UNIX /Linux
✓C is widely used to develop system software’s (OS, Compiler, Interprete
loaders)
✓C is a case sensitive program
, Basic Structure of a C Program
Introduction to ‘C’ Programming Language:
➢ Background/History of C Programming
➢ Basic structure of C program
➢ Executing a C program
➢ C-token- Keywords, Identifiers, Constant, var
special symbols
➢ Data types
➢ Operators
➢ Expressions
➢ I/O statements in C
, Background /History of C Programming
• The C programming language was designed by Dennis Ritchie at Bell Laborato
early 1970s.
• In 1972 Dennis Ritchie at Bell Labs writes C and in 1978 the publication
Programming Language” by Brian Kernighan and Dennis Ritchie caused a rev
the computing world.
• In 1983, the American National Standards Institute (ANSI) established a com
provide a modern, comprehensive definition of C. The resulting definition "AN
completed in 1988.
• Influenced by following previous High level languages • ALGOL 60 (1960
(Cambridge, 1963), • BCPL (Martin Richard, 1967), (Basic Combined Pro
Language) • B (Ken Thompson, 1970)
• BCPL and B are "type less" languages whereas C provides a variety of data type
• B language is modified by Ritchie and new Language is named as C
• C is a general-purpose language which has been closely associated with the U
which it was developed - since the system and most of the programs are writte
, Background /History of C Programming
Characteristics/Features of C Programming languages:
✓Direct access to memory layout through pointer manipulation.
✓Concise syntax, small set of keywords
✓Structured language
✓Use of Functions (Sub Program)
✓Type checking
✓C is portable(program written for one computer can be run on another c
with little modification)
✓C was invented to write operating system called UNIX /Linux
✓C is widely used to develop system software’s (OS, Compiler, Interprete
loaders)
✓C is a case sensitive program
, Basic Structure of a C Program