SlideShare a Scribd company logo
1 of 13
The Evolution Of Programming Languages
To build programs, people use languages that are similar
to human language. The program is translated into
machine code, which computers understand.
Programming languages fall into three broad categories:
• Machine languages
• Assembly languages
• Higher-level languages
The Evolution of Programming Languages
- Machine Languages
• Machine languages (first-generation
languages) are the most basic type of
computer languages, consisting of strings of
numbers the computer's hardware can use.
• Different types of hardware use different
machine code. For example, IBM computers
use different machine language than Apple
computers.
The Evolution of Programming Languages -
Assembly Languages
• Assembly languages (second-generation
languages) are only somewhat easier to work
with than machine languages.
• To create programs in assembly language,
developers use cryptic English-like phrases to
represent strings of numbers.
• The code is then translated into object code,
using a translator called an assembler.
Assembly
code
Assembler
Object code
The Evolution of Programming Languages -
Higher-Level Languages
Higher-level languages are more powerful than assembly
language and allow the programmer to work in a more
English-like environment.
Higher-level programming languages are divided into
three “generations," each more powerful than the last:
• Third-generation languages
• Fourth-generation languages
• Fifth-generation languages
Higher-Level Languages -
Third-Generation Languages
• Third-generation languages (3GLs) are the first to use true
English-like phrasing, making them easier to use than
previous languages.
• 3GLs are portable, meaning the object code created for one type
of system can be translated for use on a different type of system.
 The following languages are 3GLs:
 FORTAN C
 COBOL C++
 BASIC Java
 Pascal ActiveX
Fundamentals and History of C
C is developed by Dennis Ritchie
C is a structured programming language
C supports functions that enables easy
maintainability of code, by breaking large file into
smaller modules
Comments in C provides easy readability
C is a powerful language
HISTORY OF ANSI C
Year Language Developed By/Speciality
1960 ALGOL First Language used block
structure
1967 BCPL (Basic Complied
Programming Language)
Martin Richards
1970 B Ken Thomson
1972 B,BCPL,ALGOL 
C
Dennis Ritchie
POINTS TO REMEMBER
Case Sensitive
• Case matters in C. ‘A’ is not ‘a’
• Add plenty of comments (/* */ or //)
• Good layout, not:
main() {printf("Hello Worldn");}
• Use meaningful variable names
• Initialize your variables
• Use parentheses to avoid confusion:
a=(10.0 + 2.0) * (5.0 - 6.0) / 2.0
1. Letters: A . . . . Z and a . . . . z .
2. Decimal digits: 0 to 9
3. Special Characters: . , ; : ? ‘ “ ! | /  ~ ` _ $ % &
^ * - + < > ( ) { } [ ] #
White spaces:
Blank space
Horizontal tab
Vertical tab
Carriage return
New line
Form feed
Character Set
Smallest individual units like individual words
and punctuation marks are called tokens. They are 6
types.
1. Keywords
2.Constants
3. Identifiers
4.Strings
5.Characters
6.Special symbols
C Tokens
• cannot be used as variable name or function name
• written in lowercase
S.No Primitive
data types
User
Defined data
types
Constants Statements Memory
types
Operator
1 char enum const break auto size of
2 double union type def case extern
3 long struct continue register
4 short default static
5 signed do volatile
6 unsigned else
7 void for
8 float goto
9 int if
10 return
11 switch
12 while
Keywords

More Related Content

What's hot

What's hot (20)

Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
C program
C programC program
C program
 
C presentation book
C presentation bookC presentation book
C presentation book
 
Programming in C Presentation upto FILE
Programming in C Presentation upto FILEProgramming in C Presentation upto FILE
Programming in C Presentation upto FILE
 
Lecture 1- History of C Programming
Lecture 1- History of C Programming Lecture 1- History of C Programming
Lecture 1- History of C Programming
 
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTTC programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
 
Introduction to C Programming - I
Introduction to C Programming - I Introduction to C Programming - I
Introduction to C Programming - I
 
Introduction to c++ ppt 1
Introduction to c++ ppt 1Introduction to c++ ppt 1
Introduction to c++ ppt 1
 
C tokens
C tokensC tokens
C tokens
 
OOP in C++
OOP in C++OOP in C++
OOP in C++
 
Introduction to c#
Introduction to c#Introduction to c#
Introduction to c#
 
Basic Structure of C Language and Related Term
Basic Structure of C Language  and Related TermBasic Structure of C Language  and Related Term
Basic Structure of C Language and Related Term
 
C introduction by thooyavan
C introduction by  thooyavanC introduction by  thooyavan
C introduction by thooyavan
 
Introduction of c programming
Introduction of c programmingIntroduction of c programming
Introduction of c programming
 
History of C Programming Language
History of C Programming LanguageHistory of C Programming Language
History of C Programming Language
 
INTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMING
 
History of c++
History of c++ History of c++
History of c++
 
C Language
C LanguageC Language
C Language
 
Introduction to c++ ppt
Introduction to c++ pptIntroduction to c++ ppt
Introduction to c++ ppt
 

Viewers also liked

Token system powerpoint
Token system powerpointToken system powerpoint
Token system powerpoint
Matthew McCall
 
Operators and expressions
Operators and expressionsOperators and expressions
Operators and expressions
vishaljot_kaur
 
Prsentation on functions
Prsentation on functionsPrsentation on functions
Prsentation on functions
Alisha Korpal
 

Viewers also liked (20)

About Tokens and Lexemes
About Tokens and LexemesAbout Tokens and Lexemes
About Tokens and Lexemes
 
C language ppt
C language pptC language ppt
C language ppt
 
Token system powerpoint
Token system powerpointToken system powerpoint
Token system powerpoint
 
Recognition-of-tokens
Recognition-of-tokensRecognition-of-tokens
Recognition-of-tokens
 
Operator in c programming
Operator in c programmingOperator in c programming
Operator in c programming
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
 
C language control statements
C language  control statementsC language  control statements
C language control statements
 
Operators and expressions
Operators and expressionsOperators and expressions
Operators and expressions
 
Branching in PowerPoint
Branching in PowerPointBranching in PowerPoint
Branching in PowerPoint
 
Lecture13 control statementswitch.ppt
Lecture13 control statementswitch.pptLecture13 control statementswitch.ppt
Lecture13 control statementswitch.ppt
 
Types of operators in C
Types of operators in CTypes of operators in C
Types of operators in C
 
10. switch case
10. switch case10. switch case
10. switch case
 
Prsentation on functions
Prsentation on functionsPrsentation on functions
Prsentation on functions
 
Switch Case in C Programming
Switch Case in C ProgrammingSwitch Case in C Programming
Switch Case in C Programming
 
Decision making and branching
Decision making and branchingDecision making and branching
Decision making and branching
 
Decision making and looping
Decision making and loopingDecision making and looping
Decision making and looping
 
Switch case and looping
Switch case and loopingSwitch case and looping
Switch case and looping
 
Functions in C
Functions in CFunctions in C
Functions in C
 
Functions in C
Functions in CFunctions in C
Functions in C
 
Function in c
Function in cFunction in c
Function in c
 

Similar to Tokens_C

Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
salmankhan570
 
C Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDYC Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDY
Rajeshkumar Reddy
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
Varun Garg
 

Similar to Tokens_C (20)

evolution of programming.ppt
evolution of programming.pptevolution of programming.ppt
evolution of programming.ppt
 
all languages in computer programming
all languages in computer programmingall languages in computer programming
all languages in computer programming
 
Basic programming concepts
Basic programming conceptsBasic programming concepts
Basic programming concepts
 
C Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDYC Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDY
 
C Language
C LanguageC Language
C Language
 
Introduction To Computer Programming
Introduction To Computer ProgrammingIntroduction To Computer Programming
Introduction To Computer Programming
 
introduction to c
introduction to cintroduction to c
introduction to c
 
Lecture 1-introduction to c
Lecture 1-introduction to cLecture 1-introduction to c
Lecture 1-introduction to c
 
Why C is Called Structured Programming Language
Why C is Called Structured Programming LanguageWhy C is Called Structured Programming Language
Why C is Called Structured Programming Language
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
Evolution and History of Programming Languages - Software/Hardware/System
Evolution and History of Programming Languages - Software/Hardware/SystemEvolution and History of Programming Languages - Software/Hardware/System
Evolution and History of Programming Languages - Software/Hardware/System
 
English de lenguaje de programacion
English de lenguaje de programacionEnglish de lenguaje de programacion
English de lenguaje de programacion
 
Program & language generation
Program & language generationProgram & language generation
Program & language generation
 
Introduction to programming concepts
Introduction to programming conceptsIntroduction to programming concepts
Introduction to programming concepts
 
Presentation on Programming Languages.
Presentation on Programming Languages.Presentation on Programming Languages.
Presentation on Programming Languages.
 
C-PROGRAMMING-LANGUAGE.pptx
C-PROGRAMMING-LANGUAGE.pptxC-PROGRAMMING-LANGUAGE.pptx
C-PROGRAMMING-LANGUAGE.pptx
 
C programming 1
C programming  1C programming  1
C programming 1
 
Introduction of 'C' langauge
Introduction of  'C'  langaugeIntroduction of  'C'  langauge
Introduction of 'C' langauge
 
History of C/C++ Language
History of C/C++ LanguageHistory of C/C++ Language
History of C/C++ Language
 
C Programming introduction
C Programming introductionC Programming introduction
C Programming introduction
 

More from Prabhu Govind (20)

Preprocessor in C
Preprocessor in CPreprocessor in C
Preprocessor in C
 
Memory allocation in c
Memory allocation in cMemory allocation in c
Memory allocation in c
 
File in c
File in cFile in c
File in c
 
Pointers in C
Pointers in CPointers in C
Pointers in C
 
Unions in c
Unions in cUnions in c
Unions in c
 
Structure in c
Structure in cStructure in c
Structure in c
 
Array & string
Array & stringArray & string
Array & string
 
Recursive For S-Teacher
Recursive For S-TeacherRecursive For S-Teacher
Recursive For S-Teacher
 
User defined Functions in C
User defined Functions in CUser defined Functions in C
User defined Functions in C
 
Pre defined Functions in C
Pre defined Functions in CPre defined Functions in C
Pre defined Functions in C
 
Looping in C
Looping in CLooping in C
Looping in C
 
Branching in C
Branching in CBranching in C
Branching in C
 
Operators in C
Operators in COperators in C
Operators in C
 
Statements in C
Statements in CStatements in C
Statements in C
 
Data types in C
Data types in CData types in C
Data types in C
 
Constants in C
Constants in CConstants in C
Constants in C
 
Variables_c
Variables_cVariables_c
Variables_c
 
Computer basics
Computer basicsComputer basics
Computer basics
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentals
 
computer hardware and software
computer hardware and softwarecomputer hardware and software
computer hardware and software
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

Tokens_C

  • 1.
  • 2. The Evolution Of Programming Languages To build programs, people use languages that are similar to human language. The program is translated into machine code, which computers understand. Programming languages fall into three broad categories: • Machine languages • Assembly languages • Higher-level languages
  • 3. The Evolution of Programming Languages - Machine Languages • Machine languages (first-generation languages) are the most basic type of computer languages, consisting of strings of numbers the computer's hardware can use. • Different types of hardware use different machine code. For example, IBM computers use different machine language than Apple computers.
  • 4. The Evolution of Programming Languages - Assembly Languages • Assembly languages (second-generation languages) are only somewhat easier to work with than machine languages. • To create programs in assembly language, developers use cryptic English-like phrases to represent strings of numbers. • The code is then translated into object code, using a translator called an assembler.
  • 6. The Evolution of Programming Languages - Higher-Level Languages Higher-level languages are more powerful than assembly language and allow the programmer to work in a more English-like environment. Higher-level programming languages are divided into three “generations," each more powerful than the last: • Third-generation languages • Fourth-generation languages • Fifth-generation languages
  • 7. Higher-Level Languages - Third-Generation Languages • Third-generation languages (3GLs) are the first to use true English-like phrasing, making them easier to use than previous languages. • 3GLs are portable, meaning the object code created for one type of system can be translated for use on a different type of system.  The following languages are 3GLs:  FORTAN C  COBOL C++  BASIC Java  Pascal ActiveX
  • 8. Fundamentals and History of C C is developed by Dennis Ritchie C is a structured programming language C supports functions that enables easy maintainability of code, by breaking large file into smaller modules Comments in C provides easy readability C is a powerful language
  • 9. HISTORY OF ANSI C Year Language Developed By/Speciality 1960 ALGOL First Language used block structure 1967 BCPL (Basic Complied Programming Language) Martin Richards 1970 B Ken Thomson 1972 B,BCPL,ALGOL  C Dennis Ritchie
  • 10. POINTS TO REMEMBER Case Sensitive • Case matters in C. ‘A’ is not ‘a’ • Add plenty of comments (/* */ or //) • Good layout, not: main() {printf("Hello Worldn");} • Use meaningful variable names • Initialize your variables • Use parentheses to avoid confusion: a=(10.0 + 2.0) * (5.0 - 6.0) / 2.0
  • 11. 1. Letters: A . . . . Z and a . . . . z . 2. Decimal digits: 0 to 9 3. Special Characters: . , ; : ? ‘ “ ! | / ~ ` _ $ % & ^ * - + < > ( ) { } [ ] # White spaces: Blank space Horizontal tab Vertical tab Carriage return New line Form feed Character Set
  • 12. Smallest individual units like individual words and punctuation marks are called tokens. They are 6 types. 1. Keywords 2.Constants 3. Identifiers 4.Strings 5.Characters 6.Special symbols C Tokens
  • 13. • cannot be used as variable name or function name • written in lowercase S.No Primitive data types User Defined data types Constants Statements Memory types Operator 1 char enum const break auto size of 2 double union type def case extern 3 long struct continue register 4 short default static 5 signed do volatile 6 unsigned else 7 void for 8 float goto 9 int if 10 return 11 switch 12 while Keywords