1-Introduction to Structured Programming - C language History and Introduction - Datatypes-Basic IO statements - Variables - Keywords - Expression evaluation using operator precedence-17-12-2024
1-Introduction to Structured Programming - C language History and Introduction - Datatypes-Basic IO statements - Variables - Keywords - Expression evaluation using operator precedence-17-12-2024
oriented programming
Dr. P.SURESH
Associate Professor
School of Computer Science &
Engineering(SCOPE)
VIT,Vellore.
BCSE102L- Structured and object-oriented
programming – Course Objective
Assessment Configuration(LAB)
Assessment Syllabus Marks Pattern
Component Coverage
Queries????
Module-3: Pointers
Module-6: Inheritance
Module-7: Polymorphism
◦ Reserved Words
◦ Data types
◦ Expressions
◦ Type Conversions
◦ I/O Statements
.
BCSE102L- Structured and Object-
Oriented Programming
Module-1: C Program Fundamentals –
Branching and Looping
◦ if, if-else, nested if, else-if ladder
◦ Switch Statement
◦ Goto Statement
◦ Looping
For
◦ Break Statement
◦ Continue Statement
.
BCSE102L- Structured and Object-
Oriented Programming
What is Program?
◦ Set of instructions that instruct
the CPU to perform a defined task.
◦ We can write computer programs using
various programming languages
◦ Programming paradigm is a way of
categorizing a programming language
depending on its features
Structured Programming
Object-Oriented Programming
What is Structured Programming??
Structured/ Modular Programming
• Developing a program using a set of modules or
functions
• Easy to learn
• Language with simple rules
• Good for beginners
• Code is readable
• Less development time
• Great support for building web apps
• Dynamic language and no type
checking
Limitations in Python
Python is not a good choice for:
• Memory intensive and computation intensive tasks.
• Embedded Systems where processor has limited
capacity.
• For graphic intensive 3D game that takes up a lot of
CPU.
• Applications that demand concurrency and parallelism
• Developing mobile apps
• Interpreted language and is slow compared to C/C++ or
Java
Transition from Python to
C/C++
• Will not be so hard
• There are quite a few syntax
differences between the two
languages
• Only way to learn a new programming
language is by writing programs in it
– Dennis Ritchie
Types of Programming Language
Low level Programming Language
◦ Machine Language – Machine code- only
electronic machines such computers, mobiles
etc.. understands this – In 0’s and 1’s format.
◦ Assembly language – Directly connected
with Computer Architecture.
High level Programming Language
◦ C https://www.mentofacturing.com/vincent/impleme
◦ C++ ntations.html
= Basic Pay + ( Basic Pay * 0.8) + ( Basic Pay * 0.3 ) - ( Basic Pay * 0.12)
----------------allowances ---------------- --- deductions----
Output : Salary
Simple Problems at a Glance
What is C?
◦ C is a programming language developed at AT
& T’s Bell Laboratories of USA in 1972.
◦ It was designed and written by Dennis Ritchie.
◦ Structured and machine independent
language.
◦ Unix is one of the most popular network
operating system and it was coded entirely in
C
◦ Reliable and Friendly language
◦ What’s next?? C->C++->Java
History of C Language
Language Year Developed By
Algo 1960 International Group
BCPL 1966 Martin Richard
Traditional C 1969 Ken Thompson
K&RC 1972 Dennis Ritchie
ANSI C 1978 Kernighan & Dennis Ritchie
ANSI/ISO C 1989 ANSI Committee
C90 1990 ISO Committee
C99 1999 ISO Committee
C11 2011 Standardization Committee
C18 2018 Standardization Committee
C Programming- Fundamentals
Features of C
◦ General-purpose Structured language
◦ Free format and case-sensitive language
◦ System Programming language
◦ Fast running and efficient language
◦ Machine independent and hence it is portable
◦ Commands can be inserted anywhere in the program
◦ Memory address are directly accessed by using
pointers
◦ Supports modularity
◦ Permits recursion
◦ More built-in functions
Getting Started with C
Communicating with a computer involves speaking the
language the computer understands.
What is the learning method of English??
Steps in learning C
World in “C”
OS – Windows / UNIX / LINUX
Device Drivers Programs
Mobile Devices
Microprocessor in washing machine, digital
camera, microwave oven. Embedded C
3D Computer Games - still written in C
Thank you