SlideShare a Scribd company logo
Tutorial 1
Introduction to C Programming
Tutorial 1
Session Objective
• History of C language
• Benefits
• Common Terms for programmer
• Compilation Process
• Structure of Programming
Tutorial 1
Introduction
• C programming language was developed 1972 by Dennis
Ritchie in Bell Laboratories.
• It’s an offspring of “Basic combined programming” called ‘B’
which was developed by Ken Thomson
• B language was interpreter-based but it was very slow
• So Dennis Ritchie modified the ‘B’ language and named it
as ‘C’
• Everything before this is known as “K&R C”
Tutorial 1
History
• Standardized in 1989 by ANSI (American National
Standards Institute) known as ANSI C
• International standard (ISO) in 1990 which was
adopted by ANSI and is known as C89
• As part of the normal evolution process the
standard was updated in 1995 (C95) and 1999
(C99)
• C++ and C
– C++ extends C to include support for Object
Oriented Programming and other features that
facilitate large software development projects
– C is not strictly a subset of C++, but it is
possible to write “Clean C” that conforms to
both the C++ and C standards.
Tutorial 1
Benefits
• C programs are efficient, fast & Highly portable
• It can be written in one computer and can be run
in another computer without any Modification.
• Its easy for debugging, testing & maintenance
because of structured programming
• Functions can be used many Number of building
blocks
Tutorial 1
Common Terms for Programmer
• Compiler
• Interpreter
• Assembler
• Linker
• Loader
Tutorial 1
Compiler
• A compiler is a computer program (or set of
programs) that transforms source code written in a
computer language (the source language) into
another computer language (the target language,
often having a binary form known as object code).
• The most common reason for wanting to transform
source code is to create an executable program.
• The name "compiler" is primarily used for programs
that translate source code from a high-level
programming language to a lower level language
(e.g., assembly language or machine code).
Tutorial 1
Interpreter
• An interpreter translates some form of source
code into a target representation that it can
immediately execute and evaluate
• Translates source code into some efficient
intermediate representation (code) and
immediately executes this
• Provides color coding in the program which helps
in self debugging while writing programs
Tutorial 1
Compiler vs. Interpreter
• A complier converts the high level instruction into
machine language while an interpreter converts
the high level instruction into an intermediate
form.
• Before execution, entire program is executed by
the compiler whereas after translating the first
line, an interpreter then executes it and so on.
• List of errors is created by the compiler after the
compilation process while an interpreter stops
translating after the first error.
• Compiler executes program faster as compared to
interpreter
Tutorial 1
Assembler
• An assembler is a program that takes basic
computer instructions and converts them into a
pattern of bits
• The assembler program takes each program
statement in the source program and generates a
corresponding bit stream or pattern
• The output of the assembler program is called the
object code
• The sequence of 0's and 1's that constitute the
object program is sometimes called machine code
Tutorial 1
Linker
• Linker is a program that takes one or more
objects generated by a compiler and combines
them into a single executable program
• The compiler automatically invokes the linker as
the last step in compiling a program.
Tutorial 1
Loader
• Responsible for loading the program
• It places programs into memory and prepares
them for execution
• Loading a program involves reading the contents
of executable file, the file containing the program
text, into memory, and then carrying out other
required preparatory tasks to prepare the
executable for running
Tutorial 1
Compilation Process
Tutorial 1
Structure of Programming

More Related Content

PPT
computer languages
PPSX
PPTX
Intro to assembly language
PPTX
Introduction to Programming Languages
PPTX
Programming language
PPT
Compiler Design Basics
PPTX
C programming
PPTX
Regular expressions
computer languages
Intro to assembly language
Introduction to Programming Languages
Programming language
Compiler Design Basics
C programming
Regular expressions

What's hot (20)

PPT
1. over view and history of c
PPT
Assembler
PDF
L1. Basic Programming Concepts.pdf
PPTX
Introduction to programming languages
PPTX
History of Programming Language
PDF
system software 16 marks
PPTX
Types of Programming Languages
PDF
Turing machines
PDF
Software Engineering Perspective and Specialized Process Models
PPTX
Macro Processor
PDF
Introduction to OpenMP
PPTX
Turing machine-TOC
PPTX
1.3 Worksheet.pptx
PPTX
Assembly Language
PPTX
LR(1) and SLR(1) parsing
PPT
14 relationship between processes
PPTX
Job sequencing with Deadlines
PPTX
MACRO PROCESSOR
PPTX
Reusibility vs Extensibility in OOAD
PPTX
Lecture 10 semantic analysis 01
1. over view and history of c
Assembler
L1. Basic Programming Concepts.pdf
Introduction to programming languages
History of Programming Language
system software 16 marks
Types of Programming Languages
Turing machines
Software Engineering Perspective and Specialized Process Models
Macro Processor
Introduction to OpenMP
Turing machine-TOC
1.3 Worksheet.pptx
Assembly Language
LR(1) and SLR(1) parsing
14 relationship between processes
Job sequencing with Deadlines
MACRO PROCESSOR
Reusibility vs Extensibility in OOAD
Lecture 10 semantic analysis 01
Ad

Viewers also liked (20)

PPT
03 the c language
PDF
Singleton is not_the_only_pattern
PPTX
C Standards: main()
PPTX
PPTX
C programming tutorial for beginners
PPS
01 iec t1_s1_oo_ps_session_01
PDF
Escape sequence in c part 1
PPT
SAP BI 7 security concepts
PPTX
CCNA Interview Questions and Answer ppt - JavaTpoint
PPT
C the basic concepts
PDF
Wireless technology from 0G to 7.5G
PPTX
PDF
C++ idioms by example (Nov 2008)
PPTX
C++vs java
PDF
Solid C++ by Example
PPTX
Overview of c language
PDF
Insecure coding in C (and C++)
PDF
C notes.pdf
03 the c language
Singleton is not_the_only_pattern
C Standards: main()
C programming tutorial for beginners
01 iec t1_s1_oo_ps_session_01
Escape sequence in c part 1
SAP BI 7 security concepts
CCNA Interview Questions and Answer ppt - JavaTpoint
C the basic concepts
Wireless technology from 0G to 7.5G
C++ idioms by example (Nov 2008)
C++vs java
Solid C++ by Example
Overview of c language
Insecure coding in C (and C++)
C notes.pdf
Ad

Similar to C programming (20)

PPTX
Agro informatics centre up State of Lec 6.pptx
PPTX
Bsc cs i pic u-1 introduction to c language
PPTX
Pros and cons of c as a compiler language
PPTX
Diploma ii cfpc u-1 introduction to c language
PPT
Introduction to C for Btech 1st year.ppt
PDF
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
PPTX
Introduction to C Programming
PPTX
introduction to c language
PPTX
Mca i pic u-1 introduction to c language
PPTX
Btech i pic u-1 introduction to c language
PDF
Unit 1
PDF
C lecture notes new
PPTX
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
PPTX
PPTX
PPTX
C Programming UNIT 1.pptx
DOCX
COMPILER DESIGN.docx
PPTX
Computer Programming In C.pptx
DOCX
C Unit 1 notes PREPARED BY MVB REDDY
PPTX
Compilers.pptx
Agro informatics centre up State of Lec 6.pptx
Bsc cs i pic u-1 introduction to c language
Pros and cons of c as a compiler language
Diploma ii cfpc u-1 introduction to c language
Introduction to C for Btech 1st year.ppt
INTRODUCTION TO C PROGRAMMING MATERIAL.pdf
Introduction to C Programming
introduction to c language
Mca i pic u-1 introduction to c language
Btech i pic u-1 introduction to c language
Unit 1
C lecture notes new
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
C Programming UNIT 1.pptx
COMPILER DESIGN.docx
Computer Programming In C.pptx
C Unit 1 notes PREPARED BY MVB REDDY
Compilers.pptx

Recently uploaded (20)

PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
01-Introduction-to-Information-Management.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Cell Structure & Organelles in detailed.
PDF
RMMM.pdf make it easy to upload and study
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Basic Mud Logging Guide for educational purpose
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Lesson notes of climatology university.
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
01-Introduction-to-Information-Management.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
O7-L3 Supply Chain Operations - ICLT Program
Sports Quiz easy sports quiz sports quiz
GDM (1) (1).pptx small presentation for students
Module 4: Burden of Disease Tutorial Slides S2 2025
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Cell Structure & Organelles in detailed.
RMMM.pdf make it easy to upload and study
VCE English Exam - Section C Student Revision Booklet
Basic Mud Logging Guide for educational purpose
FourierSeries-QuestionsWithAnswers(Part-A).pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Lesson notes of climatology university.
Renaissance Architecture: A Journey from Faith to Humanism
Final Presentation General Medicine 03-08-2024.pptx
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx

C programming

  • 2. Tutorial 1 Session Objective • History of C language • Benefits • Common Terms for programmer • Compilation Process • Structure of Programming
  • 3. Tutorial 1 Introduction • C programming language was developed 1972 by Dennis Ritchie in Bell Laboratories. • It’s an offspring of “Basic combined programming” called ‘B’ which was developed by Ken Thomson • B language was interpreter-based but it was very slow • So Dennis Ritchie modified the ‘B’ language and named it as ‘C’ • Everything before this is known as “K&R C”
  • 4. Tutorial 1 History • Standardized in 1989 by ANSI (American National Standards Institute) known as ANSI C • International standard (ISO) in 1990 which was adopted by ANSI and is known as C89 • As part of the normal evolution process the standard was updated in 1995 (C95) and 1999 (C99) • C++ and C – C++ extends C to include support for Object Oriented Programming and other features that facilitate large software development projects – C is not strictly a subset of C++, but it is possible to write “Clean C” that conforms to both the C++ and C standards.
  • 5. Tutorial 1 Benefits • C programs are efficient, fast & Highly portable • It can be written in one computer and can be run in another computer without any Modification. • Its easy for debugging, testing & maintenance because of structured programming • Functions can be used many Number of building blocks
  • 6. Tutorial 1 Common Terms for Programmer • Compiler • Interpreter • Assembler • Linker • Loader
  • 7. Tutorial 1 Compiler • A compiler is a computer program (or set of programs) that transforms source code written in a computer language (the source language) into another computer language (the target language, often having a binary form known as object code). • The most common reason for wanting to transform source code is to create an executable program. • The name "compiler" is primarily used for programs that translate source code from a high-level programming language to a lower level language (e.g., assembly language or machine code).
  • 8. Tutorial 1 Interpreter • An interpreter translates some form of source code into a target representation that it can immediately execute and evaluate • Translates source code into some efficient intermediate representation (code) and immediately executes this • Provides color coding in the program which helps in self debugging while writing programs
  • 9. Tutorial 1 Compiler vs. Interpreter • A complier converts the high level instruction into machine language while an interpreter converts the high level instruction into an intermediate form. • Before execution, entire program is executed by the compiler whereas after translating the first line, an interpreter then executes it and so on. • List of errors is created by the compiler after the compilation process while an interpreter stops translating after the first error. • Compiler executes program faster as compared to interpreter
  • 10. Tutorial 1 Assembler • An assembler is a program that takes basic computer instructions and converts them into a pattern of bits • The assembler program takes each program statement in the source program and generates a corresponding bit stream or pattern • The output of the assembler program is called the object code • The sequence of 0's and 1's that constitute the object program is sometimes called machine code
  • 11. Tutorial 1 Linker • Linker is a program that takes one or more objects generated by a compiler and combines them into a single executable program • The compiler automatically invokes the linker as the last step in compiling a program.
  • 12. Tutorial 1 Loader • Responsible for loading the program • It places programs into memory and prepares them for execution • Loading a program involves reading the contents of executable file, the file containing the program text, into memory, and then carrying out other required preparatory tasks to prepare the executable for running
  • 14. Tutorial 1 Structure of Programming