SlideShare a Scribd company logo
3
Most read
17
Most read
20
Most read
C++ Language 
By:-AAKASH KAUSHIK 
#9289817971, 98919893083 
Email-theaakashkumar@gmail.com 
AAKASH KAUSHIK 
9891983083,9289817971
UNIT -1 
INTRODUCTION TO 
C++ 
AAKASH KAUSHIK 
9891983083,9289817971
INTRODUCTION 
C++ IS A PROGRAMMING LANGUAGE 
DEVELOPED BY BJARNE STROUSTRUP 
IN EARLY 1980’S 
AT AT&T BELL LABORATORIES, USA. 
AAKASH KAUSHIK 
9891983083,9289817971
LANGUAGE 
Language is way to communicate with each 
other 
AAKASH KAUSHIK 
9891983083,9289817971
PROGRAM 
A PROGRAM IS A SET/SEQUENCE OF 
COMMANDS 
AAKASH KAUSHIK 
9891983083,9289817971
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. 
AAKASH KAUSHIK 
9891983083,9289817971
LANGUAGE PROCESSORS 
ASSEMBLOR- Converts Assembly language into 
machine language 
INTERPRETER-Converts HLL to LLL and vice 
versa. It performs conversion in line by line 
manner and notifies if any error is detected & 
stops it’s conversion until that error is rectified 
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 
AAKASH KAUSHIK 
9891983083,9289817971
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 AAKASH KAUSHIK 
9891983083,9289817971
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. 
AAKASH KAUSHIK 
9891983083,9289817971
C++ Allows 5 Types Of 
Tokens 
1. KEYWORDS 
2. IDENTIFIERS 
3. LITERALS/CONSTANTS 
4. PUNTUATORS/SEPARATORS 
5. OPERATORS 
AAKASH KAUSHIK 
9891983083,9289817971
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’t be redefined as an 
IDENTIFIER. 
AAKASH KAUSHIK 
9891983083,9289817971
LIST OF KEYWORDS 
AAKASH KAUSHIK 
9891983083,9289817971
IDENTIFIERS 
IDENTIFIERS ARE THE NAMES GIVEN BY 
THE PROGRAMMER TO DIFFERENT BLOCKS, 
PARTS OF A PROGRAM TO IDENTIFY THEM. 
AAKASH KAUSHIK 
9891983083,9289817971
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. 
AAKASH KAUSHIK 
9891983083,9289817971
LITERALS/CONSTANTS 
LITERALS AND CONSTANTS ARE THOSE 
TOKENS WHOSE VALUES DON’T CHANGE 
DURING THE PROGRAM EXECUTION. 
AAKASH KAUSHIK 
9891983083,9289817971
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. 
AAKASH KAUSHIK 
9891983083,9289817971
PUNTUATORS/SEPARATORS 
PUNTUATORS ARE USED TO SEPARATE TOKENS 
WITHIN A PROGRAM. THE VARIOUS 
PUNUATORS ARE: 
{} [] () : ; , etc. 
AAKASH KAUSHIK 
9891983083,9289817971
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. 
AAKASH KAUSHIK 
9891983083,9289817971
OPERATORS 
Various operators in C++ are 
Arithmetic operators 
+,-,*,/,% 
Relational operators 
Logical operators 
Increment/Decrement Operators 
Conditional Operators 
We will discuss operators in depth later in Unit-4 
Operators & expressions. 
AAKASH KAUSHIK 
9891983083,9289817971
THANK 
YOU 
AAKASH KAUSHIK 
9891983083,9289817971

More Related Content

PDF
Let us c yashwant kanetkar(1)
PPTX
Unit 4. Operators and Expression
PPTX
Phases of compiler
PPTX
C tokens
PDF
Data structures lab manual
PPTX
Operators in C/C++
PDF
System Software /Operating System Lab Report
PPTX
Let us c yashwant kanetkar(1)
Unit 4. Operators and Expression
Phases of compiler
C tokens
Data structures lab manual
Operators in C/C++
System Software /Operating System Lab Report

What's hot (20)

PPT
Introduction to Basic C programming 01
PPTX
Circular link list.ppt
PPTX
Structure Arrays
PDF
Microsoft excel shortcut keys
PPTX
Computer architecture page replacement algorithms
PPT
Iteration
PPTX
Device Management
PPTX
Phases of Compiler.pptx
DOCX
Operating System Process Synchronization
PPTX
Introduction to c language | History of C language
PPT
Functions in C++
PPT
Evolution of computers
PPTX
1.1.1 BINARY SYSTEM
PDF
Character set in c
PPTX
Lecture 2 C++ | Variable Scope, Operators in c++
PPTX
Unit I - Evaluation of expression
PPTX
Doubly linked list (animated)
PPT
Decision making and loop in C#
PPTX
Storage classes in c language
PPT
Input devices in computer graphics
Introduction to Basic C programming 01
Circular link list.ppt
Structure Arrays
Microsoft excel shortcut keys
Computer architecture page replacement algorithms
Iteration
Device Management
Phases of Compiler.pptx
Operating System Process Synchronization
Introduction to c language | History of C language
Functions in C++
Evolution of computers
1.1.1 BINARY SYSTEM
Character set in c
Lecture 2 C++ | Variable Scope, Operators in c++
Unit I - Evaluation of expression
Doubly linked list (animated)
Decision making and loop in C#
Storage classes in c language
Input devices in computer graphics
Ad

Viewers also liked (20)

PPTX
C++ ppt
PDF
Intro to C++ - language
PPT
Basics of c++ Programming Language
PPTX
Presentation on C++ Programming Language
PPTX
C++ language
PPT
C++ programming
PPTX
C++ ppt
PPTX
12-Formation of the subjunctive
PPTX
C++ Programming Club-Lecture 1
DOCX
Apa style-1 (1)
PDF
General Tips to Overcome an Interview
PPSX
Programming Fundamental Presentation
PPTX
Datatype in c++ unit 3 -topic 2
KEY
Calculus II - 15
PDF
Computer Programming in C++
PDF
High Level Programming Constructs
PDF
C data_structures
PPTX
Variables in C and C++ Language
PPTX
Inheritance question class 12th
PPTX
C++ Chapter 3
C++ ppt
Intro to C++ - language
Basics of c++ Programming Language
Presentation on C++ Programming Language
C++ language
C++ programming
C++ ppt
12-Formation of the subjunctive
C++ Programming Club-Lecture 1
Apa style-1 (1)
General Tips to Overcome an Interview
Programming Fundamental Presentation
Datatype in c++ unit 3 -topic 2
Calculus II - 15
Computer Programming in C++
High Level Programming Constructs
C data_structures
Variables in C and C++ Language
Inheritance question class 12th
C++ Chapter 3
Ad

Similar to c++ programming Unit 1 introduction to c++ (20)

PPTX
C++ Chapter 1
PPTX
INTRODUCTION TO C++.pptx
PPTX
Introduction to c++ programming language
PDF
Introduction to c++ ppt
PPTX
Getting started with C++
PPT
Getting Started with C++
PPTX
introductiontocprogramming datatypespp.pptx
PDF
Introduction to c++
PPSX
Getting started with c++.pptx
PDF
Lecture 2
PDF
PPT
1 Revision Tour
PPTX
C++
 
PDF
Introduction to c++ ppt 1
DOCX
C-PROGRAM
PPTX
Basics Of C++.pptx
DOC
C language
PPT
Lecture 1.ppt morphology of higher plant
PPTX
Lecture 1.pptx on plant morphology, intro
PPTX
computer science tokens in c++ for school students
C++ Chapter 1
INTRODUCTION TO C++.pptx
Introduction to c++ programming language
Introduction to c++ ppt
Getting started with C++
Getting Started with C++
introductiontocprogramming datatypespp.pptx
Introduction to c++
Getting started with c++.pptx
Lecture 2
1 Revision Tour
C++
 
Introduction to c++ ppt 1
C-PROGRAM
Basics Of C++.pptx
C language
Lecture 1.ppt morphology of higher plant
Lecture 1.pptx on plant morphology, intro
computer science tokens in c++ for school students

More from AAKASH KUMAR (20)

PPTX
NETWORKING AND COMMUNICATION || SLIDE 1 || TOPOLOGY AND PLACEMENT OF DEVICES|...
PPTX
2 d array(part 2) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
PPTX
Inheritance question
PPTX
Header file BASED QUESTION- CBSE CS CLASS 12TH
PPTX
Constructor & destructor based question- cbse cs class 12th
PPTX
CHOOSE THE CORRECT IDENTIFIER - Q.1 CBSE CS EXAM
PPTX
Practical exam special- CBSE CS CLASS 12th
PPTX
2 d array(part 1) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
PPTX
STACK || FUNCTION WRITING BASED ON STACK || DATA STRUCTURE || LINKED LIST || ...
PPTX
QUEUE || FUNCTION WRITING BASED ON QUEUE || LINKED LIST || DATA STRUCTURE || ...
PPT
Ms word Part 2
PPT
Ms word Part 1
PPTX
Power point2007instruction
PPT
Html introduction Part-2
PPT
Html Slide Part-1
PPT
Evolution / history of Computer
PPTX
computer system
PPTX
Array within a class
PPTX
Input Output Devices and Memory Unit
PPTX
C++ programming Unit 5 flow of control
NETWORKING AND COMMUNICATION || SLIDE 1 || TOPOLOGY AND PLACEMENT OF DEVICES|...
2 d array(part 2) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
Inheritance question
Header file BASED QUESTION- CBSE CS CLASS 12TH
Constructor & destructor based question- cbse cs class 12th
CHOOSE THE CORRECT IDENTIFIER - Q.1 CBSE CS EXAM
Practical exam special- CBSE CS CLASS 12th
2 d array(part 1) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
STACK || FUNCTION WRITING BASED ON STACK || DATA STRUCTURE || LINKED LIST || ...
QUEUE || FUNCTION WRITING BASED ON QUEUE || LINKED LIST || DATA STRUCTURE || ...
Ms word Part 2
Ms word Part 1
Power point2007instruction
Html introduction Part-2
Html Slide Part-1
Evolution / history of Computer
computer system
Array within a class
Input Output Devices and Memory Unit
C++ programming Unit 5 flow of control

Recently uploaded (20)

PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Cell Types and Its function , kingdom of life
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Institutional Correction lecture only . . .
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Complications of Minimal Access Surgery at WLH
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
O7-L3 Supply Chain Operations - ICLT Program
Pharma ospi slides which help in ospi learning
Cell Types and Its function , kingdom of life
Pharmacology of Heart Failure /Pharmacotherapy of CHF
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
2.FourierTransform-ShortQuestionswithAnswers.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Computing-Curriculum for Schools in Ghana
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Institutional Correction lecture only . . .
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Final Presentation General Medicine 03-08-2024.pptx
Complications of Minimal Access Surgery at WLH
TR - Agricultural Crops Production NC III.pdf
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Supply Chain Operations Speaking Notes -ICLT Program
Microbial disease of the cardiovascular and lymphatic systems
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf

c++ programming Unit 1 introduction to c++

  • 1. C++ Language By:-AAKASH KAUSHIK #9289817971, 98919893083 Email-theaakashkumar@gmail.com AAKASH KAUSHIK 9891983083,9289817971
  • 2. UNIT -1 INTRODUCTION TO C++ AAKASH KAUSHIK 9891983083,9289817971
  • 3. INTRODUCTION C++ IS A PROGRAMMING LANGUAGE DEVELOPED BY BJARNE STROUSTRUP IN EARLY 1980’S AT AT&T BELL LABORATORIES, USA. AAKASH KAUSHIK 9891983083,9289817971
  • 4. LANGUAGE Language is way to communicate with each other AAKASH KAUSHIK 9891983083,9289817971
  • 5. PROGRAM A PROGRAM IS A SET/SEQUENCE OF COMMANDS AAKASH KAUSHIK 9891983083,9289817971
  • 6. 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. AAKASH KAUSHIK 9891983083,9289817971
  • 7. LANGUAGE PROCESSORS ASSEMBLOR- Converts Assembly language into machine language INTERPRETER-Converts HLL to LLL and vice versa. It performs conversion in line by line manner and notifies if any error is detected & stops it’s conversion until that error is rectified 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 AAKASH KAUSHIK 9891983083,9289817971
  • 8. 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 AAKASH KAUSHIK 9891983083,9289817971
  • 9. 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. AAKASH KAUSHIK 9891983083,9289817971
  • 10. C++ Allows 5 Types Of Tokens 1. KEYWORDS 2. IDENTIFIERS 3. LITERALS/CONSTANTS 4. PUNTUATORS/SEPARATORS 5. OPERATORS AAKASH KAUSHIK 9891983083,9289817971
  • 11. 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’t be redefined as an IDENTIFIER. AAKASH KAUSHIK 9891983083,9289817971
  • 12. LIST OF KEYWORDS AAKASH KAUSHIK 9891983083,9289817971
  • 13. IDENTIFIERS IDENTIFIERS ARE THE NAMES GIVEN BY THE PROGRAMMER TO DIFFERENT BLOCKS, PARTS OF A PROGRAM TO IDENTIFY THEM. AAKASH KAUSHIK 9891983083,9289817971
  • 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. AAKASH KAUSHIK 9891983083,9289817971
  • 15. LITERALS/CONSTANTS LITERALS AND CONSTANTS ARE THOSE TOKENS WHOSE VALUES DON’T CHANGE DURING THE PROGRAM EXECUTION. AAKASH KAUSHIK 9891983083,9289817971
  • 16. 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. AAKASH KAUSHIK 9891983083,9289817971
  • 17. PUNTUATORS/SEPARATORS PUNTUATORS ARE USED TO SEPARATE TOKENS WITHIN A PROGRAM. THE VARIOUS PUNUATORS ARE: {} [] () : ; , etc. AAKASH KAUSHIK 9891983083,9289817971
  • 18. 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. AAKASH KAUSHIK 9891983083,9289817971
  • 19. OPERATORS Various operators in C++ are Arithmetic operators +,-,*,/,% Relational operators Logical operators Increment/Decrement Operators Conditional Operators We will discuss operators in depth later in Unit-4 Operators & expressions. AAKASH KAUSHIK 9891983083,9289817971
  • 20. THANK YOU AAKASH KAUSHIK 9891983083,9289817971