SlideShare a Scribd company logo
C++ Language
By : Shrirang Pinjarkar
Email : shrirang.pinjarkar@gmail.com
UNIT -1
INTRODUCTION TO
C++
INTRODUCTION
C++ IS A PROGRAMMING LANGUAGE
IT IS A HIGHER VERSION OF C LANGUAGE
C++ IS A OBJECT ORIENTED LANGUAGE
IN EARLY 1980’S
AT BELL LABORATORIES, USA.
LANGUAGE
Language is way to communicate with each
other
PROGRAM
A PROGRAM IS A SET/SEQUENCE OF
COMMANDS
COMPUTER LANGUAGE AND MACHINE
LANGUAGE
BINARY LANGUAGE/MACHINE LANGUAGE/LOW
LEVEL LANGUAGE
Computer is an electronic device at its core level
it works on Binary Language i.e., 0,1 or high &
low. Everything in computer is stored in LLL.
HIGH LEVEL LANGUAGE
Programming languages like JAVA,C,C++ are
called HLL. Code of all these language are
written in English language.
LANGUAGE PROCESSORS
COMPILER-Converts HLL to LLL and vice versa.
It converts the whole program in one go and
notifies all the errors at the same time
C++ CHARACTER SET
Character sets are the characters used to write a
language.
Characters A-Z, a-z.
Digits 0-9.
Special Symbols {} [] () ; : “ ‘ < > ? & # ~ |  / etc.
White spaces, new line characters .
Besides all these C++ has 256 ASCII characters.
ASCII- American Standard Code for Information
Interchange
TOKENS/LEXICAL UNITS
When the compiler is processing the source code of
a program, each group of characters separated by
white spaces is called a token.
C++ Allows 5 Types Of
Tokens
1. KEYWORDS
2. IDENTIFIERS
3. LITERALS/CONSTANTS
4. PUNTUATORS/SEPARATORS
5. OPERATORS
KEYWORDS
KEYWORDS ( also known as specially reserved
words) CONVEYS A SPECIAL MEANING TO
COMPILER.
KEYWORDS are always typed in short(lower)
case.
They are reserved by the language for special
purpose and can not be redefined as an
IDENTIFIER.
LIST OF KEYWORDS
IDENTIFIERS
IDENTIFIERS ARE THE NAMES GIVEN BY
THE PROGRAMMER TO DIFFERENT BLOCKS,
PARTS OF A PROGRAM TO IDENTIFY THEM.
IDENTIFIERS REFER TO THE NAMES OF
VARIABLES , FUNCTIONS ,ARRAYS ,CLASSES
,ETC
The C++ language is a "case sensitive"
language.
That means that an identifier written in
capital letters is not equivalent to
another one with the same name but
written in small letters.
Thus, for example, the NUMBER
variable is not the same as the result
variable or the number variable.
RULES/CONVENTIONS FOR
DEFINING IDENTIFIERS
It can contain characters(A-Z, a-z),Digits(0-
9), & only one special symbol called
underscore(_).
First letter must be a character (A-Z, a-z) or
underscore(_).
No commas or blank spaces allowed.
C++ IS A CASE SENSITIVE LANGUAGE i.e.,
Upper case and Lower case characters are
different.
Identifiers
Valid Invalid
x
sumx2
hourly_rate
name
GROSS_PAY
“x”
2sumx
hourly-rate
name@
GROSS PAY
Exercise :
Valid or not?
 mass
 Force
 2ndBit
 pos12
 speed_of_light
 yağmur
 SpeedOfLight
 float
 isPrime
 speed of light
LITERALS/CONSTANTS
LITERALS AND CONSTANTS ARE THOSE
TOKENS WHOSE VALUES DON’T CHANGE
DURING THE PROGRAM EXECUTION.
LITERALS/CONSTANTS
INTEGER CONSTANT
complete rounded off numbers are called integer constants for ex :-
540, 2, 98 etc.
REAL/FLOAT CONSTANTS
Numbers with decimal point are called Real/Float literals for ex :-
2.5, 0.54, 45.98 etc.
CHARACTER CONSTANTS
Single character enclosed within single quotes(‘ ’) are called
character constants for ex :- ‘A’, ‘B’, ‘d’ etc.
STRING CONSTANTS
Group of characters enclosed within double quotes(“ “) are called
string literals for ex :- “programming” “language” etc.
PUNTUATORS/SEPARATORS
PUNTUATORS ARE USED TO SEPARATE TOKENS
WITHIN A PROGRAM. THE VARIOUS
PUNUATORS ARE:
{} [] () : ; , etc.
OPERATORS
OPERATORS OPERATES ON SOME DATA TO
GIVE RESULTS
For ex :- A+B=C
Here A, B are operand and + is the operator
which produces C as a result of addition of A
and B.
OPERATORS
Various operators in C++ are
Arithmetic operators
+,-,*,/,%
Relational operators
Logical operators
Increment/Decrement Operators
Conditional Operators
THANK
YOU

More Related Content

What's hot

Lecture 2
Lecture 2Lecture 2
Lecture 2
Tanveer Malik
 
Basic C Programming language
Basic C Programming languageBasic C Programming language
Basic C Programming language
Abhishek Soni
 
Javascript by Yahoo
Javascript by YahooJavascript by Yahoo
Javascript by Yahoo
birbal
 
CProgrammingTutorial
CProgrammingTutorialCProgrammingTutorial
CProgrammingTutorial
Muthuselvam RS
 
Ndu06 typesof language
Ndu06 typesof languageNdu06 typesof language
Ndu06 typesof language
nicky_walters
 
Programming Language
Programming  LanguageProgramming  Language
Programming Language
Adeel Hamid
 
Meta Languages Railroad Diagrams
Meta Languages Railroad DiagramsMeta Languages Railroad Diagrams
Meta Languages Railroad Diagrams
Kelly Bauer
 
Identifier in c
Identifier in cIdentifier in c
Identifier in c
ankush9927
 
Meta Languages Railroad Diagrams Student Version
Meta Languages Railroad Diagrams Student VersionMeta Languages Railroad Diagrams Student Version
Meta Languages Railroad Diagrams Student Version
Kelly Bauer
 
SD & D Types of programming language
SD & D Types of programming languageSD & D Types of programming language
SD & D Types of programming language
Forrester High School
 
C Language
C LanguageC Language
C Language
Syed Zaid Irshad
 
Programing paradigm &amp; implementation
Programing paradigm &amp; implementationPrograming paradigm &amp; implementation
Programing paradigm &amp; implementation
Bilal Maqbool ツ
 
Java unit 2
Java unit 2Java unit 2
Java unit 2
Shipra Swati
 
Programming assignment help
Programming assignment helpProgramming assignment help
Programming assignment help
www.myassignmenthelp.net
 
Chapter1 c programming data types, variables and constants
Chapter1 c programming   data types, variables and constantsChapter1 c programming   data types, variables and constants
Chapter1 c programming data types, variables and constants
vinay arora
 
Introduction to programming c
Introduction to programming cIntroduction to programming c
Introduction to programming c
Md. Rakibuzzaman Khan Pathan
 
Doppl development iteration #1
Doppl development   iteration #1Doppl development   iteration #1
Doppl development iteration #1
Diego Perini
 
ITU - MDD - Textural Languages and Grammars
ITU - MDD - Textural Languages and GrammarsITU - MDD - Textural Languages and Grammars
ITU - MDD - Textural Languages and Grammars
Tonny Madsen
 
Basics of c
Basics of cBasics of c
Basics of c
vinothini1996
 
Est 102 ppt1
Est 102 ppt1Est 102 ppt1
Est 102 ppt1
Jisu Jacob
 

What's hot (20)

Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Basic C Programming language
Basic C Programming languageBasic C Programming language
Basic C Programming language
 
Javascript by Yahoo
Javascript by YahooJavascript by Yahoo
Javascript by Yahoo
 
CProgrammingTutorial
CProgrammingTutorialCProgrammingTutorial
CProgrammingTutorial
 
Ndu06 typesof language
Ndu06 typesof languageNdu06 typesof language
Ndu06 typesof language
 
Programming Language
Programming  LanguageProgramming  Language
Programming Language
 
Meta Languages Railroad Diagrams
Meta Languages Railroad DiagramsMeta Languages Railroad Diagrams
Meta Languages Railroad Diagrams
 
Identifier in c
Identifier in cIdentifier in c
Identifier in c
 
Meta Languages Railroad Diagrams Student Version
Meta Languages Railroad Diagrams Student VersionMeta Languages Railroad Diagrams Student Version
Meta Languages Railroad Diagrams Student Version
 
SD & D Types of programming language
SD & D Types of programming languageSD & D Types of programming language
SD & D Types of programming language
 
C Language
C LanguageC Language
C Language
 
Programing paradigm &amp; implementation
Programing paradigm &amp; implementationPrograming paradigm &amp; implementation
Programing paradigm &amp; implementation
 
Java unit 2
Java unit 2Java unit 2
Java unit 2
 
Programming assignment help
Programming assignment helpProgramming assignment help
Programming assignment help
 
Chapter1 c programming data types, variables and constants
Chapter1 c programming   data types, variables and constantsChapter1 c programming   data types, variables and constants
Chapter1 c programming data types, variables and constants
 
Introduction to programming c
Introduction to programming cIntroduction to programming c
Introduction to programming c
 
Doppl development iteration #1
Doppl development   iteration #1Doppl development   iteration #1
Doppl development iteration #1
 
ITU - MDD - Textural Languages and Grammars
ITU - MDD - Textural Languages and GrammarsITU - MDD - Textural Languages and Grammars
ITU - MDD - Textural Languages and Grammars
 
Basics of c
Basics of cBasics of c
Basics of c
 
Est 102 ppt1
Est 102 ppt1Est 102 ppt1
Est 102 ppt1
 

Viewers also liked

C++ Chapter 3
C++ Chapter 3C++ Chapter 3
C++ Chapter 3
SHRIRANG PINJARKAR
 
C++ chapter 4
C++ chapter 4C++ chapter 4
C++ chapter 4
SHRIRANG PINJARKAR
 
C++ chapter 2
C++ chapter 2C++ chapter 2
C++ chapter 2
SHRIRANG PINJARKAR
 
Ethiopian GTP- Macroeconomic policy and strategy review
Ethiopian GTP- Macroeconomic policy and strategy reviewEthiopian GTP- Macroeconomic policy and strategy review
Ethiopian GTP- Macroeconomic policy and strategy review
Asmamaw Amare
 
Transitioning from reaching every district to reaching every community
Transitioning from reaching every district to reaching every communityTransitioning from reaching every district to reaching every community
Transitioning from reaching every district to reaching every community
JSI
 
The Economy under President Obama
The Economy under President ObamaThe Economy under President Obama
The Economy under President Obama
David Doney
 
Federal ministry of land, housing & urban development
Federal ministry of land, housing & urban developmentFederal ministry of land, housing & urban development
Federal ministry of land, housing & urban development
Otoide Ayemere
 
Online PMES - Concept of POSSESSION and OWNERSHIP
Online PMES - Concept of POSSESSION and OWNERSHIPOnline PMES - Concept of POSSESSION and OWNERSHIP
Online PMES - Concept of POSSESSION and OWNERSHIP
BLP Cooperative
 
Mulu Gebreeyesus: Industrial Policy and Development in Ethiopia: Evolution an...
Mulu Gebreeyesus: Industrial Policy and Development in Ethiopia: Evolution an...Mulu Gebreeyesus: Industrial Policy and Development in Ethiopia: Evolution an...
Mulu Gebreeyesus: Industrial Policy and Development in Ethiopia: Evolution an...
UNU-WIDER
 
Urban And Regional Planning And Development Law
Urban And Regional Planning And Development LawUrban And Regional Planning And Development Law
Urban And Regional Planning And Development Law
Government of Ekiti State, Nigeria
 
Rural-Urban Transformation in Ethiopia - Implications for Development Strategies
Rural-Urban Transformation in Ethiopia - Implications for Development StrategiesRural-Urban Transformation in Ethiopia - Implications for Development Strategies
Rural-Urban Transformation in Ethiopia - Implications for Development Strategies
essp2
 
Land law [all slides for studentsj]
Land law [all slides for studentsj]Land law [all slides for studentsj]
Land law [all slides for studentsj]
haile girmay
 
Ministry of Housing and Urban Development
Ministry of Housing and Urban DevelopmentMinistry of Housing and Urban Development
Ministry of Housing and Urban Development
TransformNG
 
c++ programming Unit 1 introduction to c++
c++ programming Unit 1  introduction to c++c++ programming Unit 1  introduction to c++
c++ programming Unit 1 introduction to c++
AAKASH KUMAR
 
Land Law 1 DEFINITION OF LAND
Land Law 1 DEFINITION OF LANDLand Law 1 DEFINITION OF LAND
Land Law 1 DEFINITION OF LAND
xareejx
 
Insecure coding in C (and C++)
Insecure coding in C (and C++)Insecure coding in C (and C++)
Insecure coding in C (and C++)
Olve Maudal
 
Deepsi. ppt on fiscal policy
Deepsi. ppt on fiscal policy Deepsi. ppt on fiscal policy
Deepsi. ppt on fiscal policy
Deepsi Khandelwal
 
Monetary policy
Monetary policyMonetary policy
Monetary policy
Sarabjeet Sohi
 
Direct & indirect taxes
Direct & indirect  taxesDirect & indirect  taxes
Direct & indirect taxes
Deepali Mhatre
 
01 General Principles of Taxation
01 General Principles of Taxation01 General Principles of Taxation
01 General Principles of Taxation
krista3633
 

Viewers also liked (20)

C++ Chapter 3
C++ Chapter 3C++ Chapter 3
C++ Chapter 3
 
C++ chapter 4
C++ chapter 4C++ chapter 4
C++ chapter 4
 
C++ chapter 2
C++ chapter 2C++ chapter 2
C++ chapter 2
 
Ethiopian GTP- Macroeconomic policy and strategy review
Ethiopian GTP- Macroeconomic policy and strategy reviewEthiopian GTP- Macroeconomic policy and strategy review
Ethiopian GTP- Macroeconomic policy and strategy review
 
Transitioning from reaching every district to reaching every community
Transitioning from reaching every district to reaching every communityTransitioning from reaching every district to reaching every community
Transitioning from reaching every district to reaching every community
 
The Economy under President Obama
The Economy under President ObamaThe Economy under President Obama
The Economy under President Obama
 
Federal ministry of land, housing & urban development
Federal ministry of land, housing & urban developmentFederal ministry of land, housing & urban development
Federal ministry of land, housing & urban development
 
Online PMES - Concept of POSSESSION and OWNERSHIP
Online PMES - Concept of POSSESSION and OWNERSHIPOnline PMES - Concept of POSSESSION and OWNERSHIP
Online PMES - Concept of POSSESSION and OWNERSHIP
 
Mulu Gebreeyesus: Industrial Policy and Development in Ethiopia: Evolution an...
Mulu Gebreeyesus: Industrial Policy and Development in Ethiopia: Evolution an...Mulu Gebreeyesus: Industrial Policy and Development in Ethiopia: Evolution an...
Mulu Gebreeyesus: Industrial Policy and Development in Ethiopia: Evolution an...
 
Urban And Regional Planning And Development Law
Urban And Regional Planning And Development LawUrban And Regional Planning And Development Law
Urban And Regional Planning And Development Law
 
Rural-Urban Transformation in Ethiopia - Implications for Development Strategies
Rural-Urban Transformation in Ethiopia - Implications for Development StrategiesRural-Urban Transformation in Ethiopia - Implications for Development Strategies
Rural-Urban Transformation in Ethiopia - Implications for Development Strategies
 
Land law [all slides for studentsj]
Land law [all slides for studentsj]Land law [all slides for studentsj]
Land law [all slides for studentsj]
 
Ministry of Housing and Urban Development
Ministry of Housing and Urban DevelopmentMinistry of Housing and Urban Development
Ministry of Housing and Urban Development
 
c++ programming Unit 1 introduction to c++
c++ programming Unit 1  introduction to c++c++ programming Unit 1  introduction to c++
c++ programming Unit 1 introduction to c++
 
Land Law 1 DEFINITION OF LAND
Land Law 1 DEFINITION OF LANDLand Law 1 DEFINITION OF LAND
Land Law 1 DEFINITION OF LAND
 
Insecure coding in C (and C++)
Insecure coding in C (and C++)Insecure coding in C (and C++)
Insecure coding in C (and C++)
 
Deepsi. ppt on fiscal policy
Deepsi. ppt on fiscal policy Deepsi. ppt on fiscal policy
Deepsi. ppt on fiscal policy
 
Monetary policy
Monetary policyMonetary policy
Monetary policy
 
Direct & indirect taxes
Direct & indirect  taxesDirect & indirect  taxes
Direct & indirect taxes
 
01 General Principles of Taxation
01 General Principles of Taxation01 General Principles of Taxation
01 General Principles of Taxation
 

Similar to C++ Chapter 1

cunit1.pptx
cunit1.pptxcunit1.pptx
cunit1.pptx
zeenatparveen24
 
Computer Languages....ppt
Computer Languages....pptComputer Languages....ppt
Computer Languages....ppt
hashgeneration
 
Introduction to C++ (for beginner): C++ Keywords.pptx
Introduction to C++  (for beginner): C++ Keywords.pptxIntroduction to C++  (for beginner): C++ Keywords.pptx
Introduction to C++ (for beginner): C++ Keywords.pptx
ofeliacanaria1
 
Basics of C.ppt
Basics of C.pptBasics of C.ppt
Basics of C.ppt
Ashwini Rao
 
C language for Semester Exams for Engineers
C language for Semester Exams for Engineers C language for Semester Exams for Engineers
C language for Semester Exams for Engineers
Appili Vamsi Krishna
 
Chapter 1 a13
Chapter 1 a13Chapter 1 a13
Chapter 1 a13
kashee99
 
week 1 - INTRO TO PROGRAMMING.pptx
week 1 - INTRO TO PROGRAMMING.pptxweek 1 - INTRO TO PROGRAMMING.pptx
week 1 - INTRO TO PROGRAMMING.pptx
nuruddinnnaim
 
C Lang notes.ppt
C Lang notes.pptC Lang notes.ppt
C Lang notes.ppt
ShivanadhuniBhanuPra
 
Basic Meaning of Computer languages
Basic Meaning of Computer languagesBasic Meaning of Computer languages
C++
C++C++
C++
k v
 
Languages
LanguagesLanguages
Languages
ankur bhalla
 
NEP.pptx
NEP.pptxNEP.pptx
Basics Of C Programming For Beginners In Easiest Way
Basics Of C Programming For Beginners In Easiest WayBasics Of C Programming For Beginners In Easiest Way
Basics Of C Programming For Beginners In Easiest Way
akshay rajpure
 
C language
C languageC language
C language
SMS2007
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
vikram mahendra
 
C programming.pdf
C programming.pdfC programming.pdf
C programming.pdf
JitendraYadav351971
 
Unit 1
Unit 1Unit 1
Unit 1
TPLatchoumi
 
C presentation book
C presentation bookC presentation book
C presentation book
krunal1210
 
Introduction of c language
Introduction of c languageIntroduction of c language
Introduction of c language
Teena Bosamiya
 
Development of computer languages
Development of computer languagesDevelopment of computer languages
Development of computer languages
luckas chauhan
 

Similar to C++ Chapter 1 (20)

cunit1.pptx
cunit1.pptxcunit1.pptx
cunit1.pptx
 
Computer Languages....ppt
Computer Languages....pptComputer Languages....ppt
Computer Languages....ppt
 
Introduction to C++ (for beginner): C++ Keywords.pptx
Introduction to C++  (for beginner): C++ Keywords.pptxIntroduction to C++  (for beginner): C++ Keywords.pptx
Introduction to C++ (for beginner): C++ Keywords.pptx
 
Basics of C.ppt
Basics of C.pptBasics of C.ppt
Basics of C.ppt
 
C language for Semester Exams for Engineers
C language for Semester Exams for Engineers C language for Semester Exams for Engineers
C language for Semester Exams for Engineers
 
Chapter 1 a13
Chapter 1 a13Chapter 1 a13
Chapter 1 a13
 
week 1 - INTRO TO PROGRAMMING.pptx
week 1 - INTRO TO PROGRAMMING.pptxweek 1 - INTRO TO PROGRAMMING.pptx
week 1 - INTRO TO PROGRAMMING.pptx
 
C Lang notes.ppt
C Lang notes.pptC Lang notes.ppt
C Lang notes.ppt
 
Basic Meaning of Computer languages
Basic Meaning of Computer languagesBasic Meaning of Computer languages
Basic Meaning of Computer languages
 
C++
C++C++
C++
 
Languages
LanguagesLanguages
Languages
 
NEP.pptx
NEP.pptxNEP.pptx
NEP.pptx
 
Basics Of C Programming For Beginners In Easiest Way
Basics Of C Programming For Beginners In Easiest WayBasics Of C Programming For Beginners In Easiest Way
Basics Of C Programming For Beginners In Easiest Way
 
C language
C languageC language
C language
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
 
C programming.pdf
C programming.pdfC programming.pdf
C programming.pdf
 
Unit 1
Unit 1Unit 1
Unit 1
 
C presentation book
C presentation bookC presentation book
C presentation book
 
Introduction of c language
Introduction of c languageIntroduction of c language
Introduction of c language
 
Development of computer languages
Development of computer languagesDevelopment of computer languages
Development of computer languages
 

Recently uploaded

Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
zubairahmad848137
 
Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
Aditya Rajan Patra
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEMTIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
HODECEDSIET
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
171ticu
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
co23btech11018
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
abbyasa1014
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
rpskprasana
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 

Recently uploaded (20)

Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
 
Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEMTIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
 
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样学校原版美国波士顿大学毕业证学历学位证书原版一模一样
学校原版美国波士顿大学毕业证学历学位证书原版一模一样
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
Computational Engineering IITH Presentation
Computational Engineering IITH PresentationComputational Engineering IITH Presentation
Computational Engineering IITH Presentation
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 

C++ Chapter 1

  • 1. C++ Language By : Shrirang Pinjarkar Email : shrirang.pinjarkar@gmail.com
  • 3. INTRODUCTION C++ IS A PROGRAMMING LANGUAGE IT IS A HIGHER VERSION OF C LANGUAGE C++ IS A OBJECT ORIENTED LANGUAGE IN EARLY 1980’S AT BELL LABORATORIES, USA.
  • 4. LANGUAGE Language is way to communicate with each other PROGRAM A PROGRAM IS A SET/SEQUENCE OF COMMANDS
  • 5. COMPUTER LANGUAGE AND MACHINE LANGUAGE BINARY LANGUAGE/MACHINE LANGUAGE/LOW LEVEL LANGUAGE Computer is an electronic device at its core level it works on Binary Language i.e., 0,1 or high & low. Everything in computer is stored in LLL. HIGH LEVEL LANGUAGE Programming languages like JAVA,C,C++ are called HLL. Code of all these language are written in English language.
  • 6. LANGUAGE PROCESSORS COMPILER-Converts HLL to LLL and vice versa. It converts the whole program in one go and notifies all the errors at the same time
  • 7. C++ CHARACTER SET Character sets are the characters used to write a language. Characters A-Z, a-z. Digits 0-9. Special Symbols {} [] () ; : “ ‘ < > ? & # ~ | / etc. White spaces, new line characters . Besides all these C++ has 256 ASCII characters. ASCII- American Standard Code for Information Interchange
  • 8. TOKENS/LEXICAL UNITS When the compiler is processing the source code of a program, each group of characters separated by white spaces is called a token.
  • 9. C++ Allows 5 Types Of Tokens 1. KEYWORDS 2. IDENTIFIERS 3. LITERALS/CONSTANTS 4. PUNTUATORS/SEPARATORS 5. OPERATORS
  • 10. KEYWORDS KEYWORDS ( also known as specially reserved words) CONVEYS A SPECIAL MEANING TO COMPILER. KEYWORDS are always typed in short(lower) case. They are reserved by the language for special purpose and can not be redefined as an IDENTIFIER.
  • 12. IDENTIFIERS IDENTIFIERS ARE THE NAMES GIVEN BY THE PROGRAMMER TO DIFFERENT BLOCKS, PARTS OF A PROGRAM TO IDENTIFY THEM. IDENTIFIERS REFER TO THE NAMES OF VARIABLES , FUNCTIONS ,ARRAYS ,CLASSES ,ETC
  • 13. The C++ language is a "case sensitive" language. That means that an identifier written in capital letters is not equivalent to another one with the same name but written in small letters. Thus, for example, the NUMBER variable is not the same as the result variable or the number variable.
  • 14. RULES/CONVENTIONS FOR DEFINING IDENTIFIERS It can contain characters(A-Z, a-z),Digits(0- 9), & only one special symbol called underscore(_). First letter must be a character (A-Z, a-z) or underscore(_). No commas or blank spaces allowed. C++ IS A CASE SENSITIVE LANGUAGE i.e., Upper case and Lower case characters are different.
  • 16. Exercise : Valid or not?  mass  Force  2ndBit  pos12  speed_of_light  yağmur  SpeedOfLight  float  isPrime  speed of light
  • 17. LITERALS/CONSTANTS LITERALS AND CONSTANTS ARE THOSE TOKENS WHOSE VALUES DON’T CHANGE DURING THE PROGRAM EXECUTION.
  • 18. LITERALS/CONSTANTS INTEGER CONSTANT complete rounded off numbers are called integer constants for ex :- 540, 2, 98 etc. REAL/FLOAT CONSTANTS Numbers with decimal point are called Real/Float literals for ex :- 2.5, 0.54, 45.98 etc. CHARACTER CONSTANTS Single character enclosed within single quotes(‘ ’) are called character constants for ex :- ‘A’, ‘B’, ‘d’ etc. STRING CONSTANTS Group of characters enclosed within double quotes(“ “) are called string literals for ex :- “programming” “language” etc.
  • 19. PUNTUATORS/SEPARATORS PUNTUATORS ARE USED TO SEPARATE TOKENS WITHIN A PROGRAM. THE VARIOUS PUNUATORS ARE: {} [] () : ; , etc.
  • 20. OPERATORS OPERATORS OPERATES ON SOME DATA TO GIVE RESULTS For ex :- A+B=C Here A, B are operand and + is the operator which produces C as a result of addition of A and B.
  • 21. OPERATORS Various operators in C++ are Arithmetic operators +,-,*,/,% Relational operators Logical operators Increment/Decrement Operators Conditional Operators