SlideShare a Scribd company logo
What is
Token
What is Token
C tokens are the basic buildings blocks in C language which are
constructed together to write a C program.
Each and every smallest individual units in a C program are
known as C tokens
Types of Token
In C Programming tokens are of six types.
They are,
I. Keywords (ex: int, while,float),
II. Identifiers (ex: sum, total),
III. Constants (ex: 10, 20),
IV. Strings (ex: “ram”, “hello”),
V. Special symbols (ex: (), {}),
VI. Operators (ex: +, /,-,*)
C TOKENS EXAMPLE PROGRAM
#include<stdio.h>
void main()
{
int x, y, sum;
x = 6, y = 6;
sum = x + y;
printf ("Total = %d n", sum);
}
main – identifier
{,}, (,) – delimiter
int – keyword
x, y, sum – identifier
main, {, }, (, ), int, x, y, sum –
tokens
output
Total = 12
Press any key to continue . . .
Conclusion
That means C program consists of various tokens and a token is either a keyword, an
identifier, a constant, a string literal, Special symbols or a operator. For example, the
following C statement consists of five tokens
printf(“welcome heren”);
The individual tokens are −
printf
(
“welcome heren”
)
;
Token Examples
No Token Type Example 1 Example 2
1 Keyword do while
2 Constants number sum
3 Identifier -66 69
4 String “Hello” “Prem”
5
Special
Symbol
(), {} @
6 Operators ++ /
Thank You

More Related Content

What's hot

C Token’s
C Token’sC Token’s
C Token’s
Tarun Sharma
 
Programming in c Arrays
Programming in c ArraysProgramming in c Arrays
Programming in c Arrays
janani thirupathi
 
Character Array and String
Character Array and StringCharacter Array and String
Character Array and String
Tasnima Hamid
 
Features of c language 1
Features of c language 1Features of c language 1
Features of c language 1
srmohan06
 
Data types in C
Data types in CData types in C
Data types in C
Tarun Sharma
 
structure and union
structure and unionstructure and union
structure and unionstudent
 
Constants in C Programming
Constants in C ProgrammingConstants in C Programming
Constants in C Programming
programming9
 
C functions
C functionsC functions
concept of Array, 1D & 2D array
concept of Array, 1D & 2D arrayconcept of Array, 1D & 2D array
concept of Array, 1D & 2D array
Sangani Ankur
 
C Language
C LanguageC Language
C Language
Aakash Singh
 
C string
C stringC string
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C Programming
Kamal Acharya
 
Data types in C language
Data types in C languageData types in C language
Data types in C language
kashyap399
 
Data Type in C Programming
Data Type in C ProgrammingData Type in C Programming
Data Type in C Programming
Qazi Shahzad Ali
 
2D Array
2D Array 2D Array
2D Array
Ehatsham Riaz
 
Data types in c++
Data types in c++Data types in c++
Data types in c++
Venkata.Manish Reddy
 
Data types in C
Data types in CData types in C
Data types in C
Ansh Kashyap
 
Functions in c language
Functions in c language Functions in c language
Functions in c language
tanmaymodi4
 
Header files of c++ unit 3 -topic 3
Header files of c++ unit 3 -topic 3Header files of c++ unit 3 -topic 3
Header files of c++ unit 3 -topic 3
MOHIT TOMAR
 

What's hot (20)

C Token’s
C Token’sC Token’s
C Token’s
 
Programming in c Arrays
Programming in c ArraysProgramming in c Arrays
Programming in c Arrays
 
Character Array and String
Character Array and StringCharacter Array and String
Character Array and String
 
Function in C program
Function in C programFunction in C program
Function in C program
 
Features of c language 1
Features of c language 1Features of c language 1
Features of c language 1
 
Data types in C
Data types in CData types in C
Data types in C
 
structure and union
structure and unionstructure and union
structure and union
 
Constants in C Programming
Constants in C ProgrammingConstants in C Programming
Constants in C Programming
 
C functions
C functionsC functions
C functions
 
concept of Array, 1D & 2D array
concept of Array, 1D & 2D arrayconcept of Array, 1D & 2D array
concept of Array, 1D & 2D array
 
C Language
C LanguageC Language
C Language
 
C string
C stringC string
C string
 
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C Programming
 
Data types in C language
Data types in C languageData types in C language
Data types in C language
 
Data Type in C Programming
Data Type in C ProgrammingData Type in C Programming
Data Type in C Programming
 
2D Array
2D Array 2D Array
2D Array
 
Data types in c++
Data types in c++Data types in c++
Data types in c++
 
Data types in C
Data types in CData types in C
Data types in C
 
Functions in c language
Functions in c language Functions in c language
Functions in c language
 
Header files of c++ unit 3 -topic 3
Header files of c++ unit 3 -topic 3Header files of c++ unit 3 -topic 3
Header files of c++ unit 3 -topic 3
 

Viewers also liked

Chapter3
Chapter3Chapter3
Chapter3
Kamran
 
Tokens_C
Tokens_CTokens_C
Tokens_C
Prabhu Govind
 
About Tokens and Lexemes
About Tokens and LexemesAbout Tokens and Lexemes
About Tokens and Lexemes
Ben Scholzen
 
Comunicato stampa piano spiagge Marinella
Comunicato stampa piano spiagge MarinellaComunicato stampa piano spiagge Marinella
Comunicato stampa piano spiagge Marinella
Claudia Bertanza
 
Proekt lyubi y_vivchay_sviy_ridny_kray
Proekt lyubi y_vivchay_sviy_ridny_krayProekt lyubi y_vivchay_sviy_ridny_kray
Proekt lyubi y_vivchay_sviy_ridny_kray
Poltava municipal lyceum #1
 
дорожні знаки
дорожні знакидорожні знаки
дорожні знаки
Poltava municipal lyceum #1
 
Ibrahim
IbrahimIbrahim
Ibrahim
pashasoner
 
Scuola XXI luglio osservazioni alla delibera cc 82 del 2014
Scuola XXI luglio osservazioni alla delibera cc 82 del 2014Scuola XXI luglio osservazioni alla delibera cc 82 del 2014
Scuola XXI luglio osservazioni alla delibera cc 82 del 2014
Claudia Bertanza
 
Resume Andrew L. Harrell jan 2016
Resume Andrew L. Harrell jan 2016Resume Andrew L. Harrell jan 2016
Resume Andrew L. Harrell jan 2016
Andrew Harrell
 
відповідаючи перед майбутнім
відповідаючи перед майбутнімвідповідаючи перед майбутнім
відповідаючи перед майбутнім
Poltava municipal lyceum #1
 
Variazioni ATC per domenica 12 aprile
Variazioni ATC per domenica 12 aprileVariazioni ATC per domenica 12 aprile
Variazioni ATC per domenica 12 aprile
Claudia Bertanza
 
реквієм за убієнних голодом
реквієм за убієнних голодомреквієм за убієнних голодом
реквієм за убієнних голодом
Poltava municipal lyceum #1
 
Cacpt accounting notes
Cacpt accounting  notesCacpt accounting  notes
Cacpt accounting notesRoy Mathew
 
Work lifeleader Manifesto
Work lifeleader ManifestoWork lifeleader Manifesto
Work lifeleader Manifesto
Julie Cohen
 
правила безпечного користування побутовими газовими
правила безпечного користування побутовими газовимиправила безпечного користування побутовими газовими
правила безпечного користування побутовими газовими
Poltava municipal lyceum #1
 
Ordinanza Capitaneria di Porto
Ordinanza Capitaneria di PortoOrdinanza Capitaneria di Porto
Ordinanza Capitaneria di Porto
Claudia Bertanza
 
Presentación voz pasiva.Francisco Fernández Mayor
Presentación  voz pasiva.Francisco Fernández MayorPresentación  voz pasiva.Francisco Fernández Mayor
Presentación voz pasiva.Francisco Fernández Mayor
maritechu
 

Viewers also liked (20)

Chapter3
Chapter3Chapter3
Chapter3
 
Tokens_C
Tokens_CTokens_C
Tokens_C
 
About Tokens and Lexemes
About Tokens and LexemesAbout Tokens and Lexemes
About Tokens and Lexemes
 
Comunicato stampa piano spiagge Marinella
Comunicato stampa piano spiagge MarinellaComunicato stampa piano spiagge Marinella
Comunicato stampa piano spiagge Marinella
 
Proekt lyubi y_vivchay_sviy_ridny_kray
Proekt lyubi y_vivchay_sviy_ridny_krayProekt lyubi y_vivchay_sviy_ridny_kray
Proekt lyubi y_vivchay_sviy_ridny_kray
 
resume 2
resume 2resume 2
resume 2
 
дорожні знаки
дорожні знакидорожні знаки
дорожні знаки
 
Ibrahim
IbrahimIbrahim
Ibrahim
 
Scuola XXI luglio osservazioni alla delibera cc 82 del 2014
Scuola XXI luglio osservazioni alla delibera cc 82 del 2014Scuola XXI luglio osservazioni alla delibera cc 82 del 2014
Scuola XXI luglio osservazioni alla delibera cc 82 del 2014
 
Resume Andrew L. Harrell jan 2016
Resume Andrew L. Harrell jan 2016Resume Andrew L. Harrell jan 2016
Resume Andrew L. Harrell jan 2016
 
відповідаючи перед майбутнім
відповідаючи перед майбутнімвідповідаючи перед майбутнім
відповідаючи перед майбутнім
 
Variazioni ATC per domenica 12 aprile
Variazioni ATC per domenica 12 aprileVariazioni ATC per domenica 12 aprile
Variazioni ATC per domenica 12 aprile
 
реквієм за убієнних голодом
реквієм за убієнних голодомреквієм за убієнних голодом
реквієм за убієнних голодом
 
Mohammad_CV
Mohammad_CVMohammad_CV
Mohammad_CV
 
Cacpt accounting notes
Cacpt accounting  notesCacpt accounting  notes
Cacpt accounting notes
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentation
 
Work lifeleader Manifesto
Work lifeleader ManifestoWork lifeleader Manifesto
Work lifeleader Manifesto
 
правила безпечного користування побутовими газовими
правила безпечного користування побутовими газовимиправила безпечного користування побутовими газовими
правила безпечного користування побутовими газовими
 
Ordinanza Capitaneria di Porto
Ordinanza Capitaneria di PortoOrdinanza Capitaneria di Porto
Ordinanza Capitaneria di Porto
 
Presentación voz pasiva.Francisco Fernández Mayor
Presentación  voz pasiva.Francisco Fernández MayorPresentación  voz pasiva.Francisco Fernández Mayor
Presentación voz pasiva.Francisco Fernández Mayor
 

Similar to What is token c programming

Programming in C.pptx
Programming in C.pptxProgramming in C.pptx
Programming in C.pptx
TeresitaDapulase
 
C prog ppt
C prog pptC prog ppt
C prog ppt
xinoe
 
(Lect. 2 & 3) Introduction to C.ppt
(Lect. 2 & 3) Introduction to C.ppt(Lect. 2 & 3) Introduction to C.ppt
(Lect. 2 & 3) Introduction to C.ppt
atulchaudhary821
 
Variable, token, & identifier in c programming
Variable, token, & identifier in c programmingVariable, token, & identifier in c programming
Variable, token, & identifier in c programming
Mehenaz Sorna
 
C introduction by thooyavan
C introduction by  thooyavanC introduction by  thooyavan
C introduction by thooyavan
Thooyavan Venkatachalam
 
basics of C and c++ by eteaching
basics of C and c++ by eteachingbasics of C and c++ by eteaching
basics of C and c++ by eteaching
eteaching
 
SPL 3 | Introduction to C programming
SPL 3 | Introduction to C programmingSPL 3 | Introduction to C programming
SPL 3 | Introduction to C programming
Mohammad Imam Hossain
 
presentation_data_types_and_operators_1513499834_241350.pptx
presentation_data_types_and_operators_1513499834_241350.pptxpresentation_data_types_and_operators_1513499834_241350.pptx
presentation_data_types_and_operators_1513499834_241350.pptx
KrishanPalSingh39
 
Fundamental of C Programming Language and Basic Input/Output Function
  Fundamental of C Programming Language and Basic Input/Output Function  Fundamental of C Programming Language and Basic Input/Output Function
Fundamental of C Programming Language and Basic Input/Output Function
imtiazalijoono
 
Unit 4 Foc
Unit 4 FocUnit 4 Foc
Unit 4 Foc
JAYA
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
MOHAMAD NOH AHMAD
 
Getting started with c++
Getting started with c++Getting started with c++
Getting started with c++
K Durga Prasad
 
Btech i pic u-2 datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c languageBtech i pic u-2 datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c language
Rai University
 
Mca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c languageMca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c language
Rai University
 
datatypes and variables in c language
 datatypes and variables in c language datatypes and variables in c language
datatypes and variables in c language
Rai University
 
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
Chris Adamson
 
C presentation book
C presentation bookC presentation book
C presentation book
krunal1210
 

Similar to What is token c programming (20)

Programming in C.pptx
Programming in C.pptxProgramming in C.pptx
Programming in C.pptx
 
7512635.ppt
7512635.ppt7512635.ppt
7512635.ppt
 
C prog ppt
C prog pptC prog ppt
C prog ppt
 
(Lect. 2 & 3) Introduction to C.ppt
(Lect. 2 & 3) Introduction to C.ppt(Lect. 2 & 3) Introduction to C.ppt
(Lect. 2 & 3) Introduction to C.ppt
 
Variable, token, & identifier in c programming
Variable, token, & identifier in c programmingVariable, token, & identifier in c programming
Variable, token, & identifier in c programming
 
C introduction by thooyavan
C introduction by  thooyavanC introduction by  thooyavan
C introduction by thooyavan
 
basics of C and c++ by eteaching
basics of C and c++ by eteachingbasics of C and c++ by eteaching
basics of C and c++ by eteaching
 
SPL 3 | Introduction to C programming
SPL 3 | Introduction to C programmingSPL 3 | Introduction to C programming
SPL 3 | Introduction to C programming
 
presentation_data_types_and_operators_1513499834_241350.pptx
presentation_data_types_and_operators_1513499834_241350.pptxpresentation_data_types_and_operators_1513499834_241350.pptx
presentation_data_types_and_operators_1513499834_241350.pptx
 
Fundamental of C Programming Language and Basic Input/Output Function
  Fundamental of C Programming Language and Basic Input/Output Function  Fundamental of C Programming Language and Basic Input/Output Function
Fundamental of C Programming Language and Basic Input/Output Function
 
Unit 4 Foc
Unit 4 FocUnit 4 Foc
Unit 4 Foc
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
 
Getting started with c++
Getting started with c++Getting started with c++
Getting started with c++
 
Getting started with c++
Getting started with c++Getting started with c++
Getting started with c++
 
Btech i pic u-2 datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c languageBtech i pic u-2 datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c language
 
Mca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c languageMca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c language
 
First c program
First c programFirst c program
First c program
 
datatypes and variables in c language
 datatypes and variables in c language datatypes and variables in c language
datatypes and variables in c language
 
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
Oh Crap, I Forgot (Or Never Learned) C! [CodeMash 2010]
 
C presentation book
C presentation bookC presentation book
C presentation book
 

More from Rumman Ansari

Sql tutorial
Sql tutorialSql tutorial
Sql tutorial
Rumman Ansari
 
C programming exercises and solutions
C programming exercises and solutions C programming exercises and solutions
C programming exercises and solutions
Rumman Ansari
 
Java Tutorial best website
Java Tutorial best websiteJava Tutorial best website
Java Tutorial best website
Rumman Ansari
 
Java Questions and Answers
Java Questions and AnswersJava Questions and Answers
Java Questions and Answers
Rumman Ansari
 
servlet programming
servlet programmingservlet programming
servlet programming
Rumman Ansari
 
C program to write c program without using main function
C program to write c program without using main functionC program to write c program without using main function
C program to write c program without using main function
Rumman Ansari
 
Steps for c program execution
Steps for c program executionSteps for c program execution
Steps for c program execution
Rumman Ansari
 
Pointer in c program
Pointer in c programPointer in c program
Pointer in c program
Rumman Ansari
 
My first program in c, hello world !
My first program in c, hello world !My first program in c, hello world !
My first program in c, hello world !
Rumman Ansari
 
How c program execute in c program
How c program execute in c program How c program execute in c program
How c program execute in c program
Rumman Ansari
 
What is identifier c programming
What is identifier c programmingWhat is identifier c programming
What is identifier c programming
Rumman Ansari
 
Type casting in c programming
Type casting in c programmingType casting in c programming
Type casting in c programming
Rumman Ansari
 
C Programming Language Part 11
C Programming Language Part 11C Programming Language Part 11
C Programming Language Part 11
Rumman Ansari
 
C Programming Language Part 9
C Programming Language Part 9C Programming Language Part 9
C Programming Language Part 9
Rumman Ansari
 
C Programming Language Part 8
C Programming Language Part 8C Programming Language Part 8
C Programming Language Part 8
Rumman Ansari
 
C Programming Language Part 7
C Programming Language Part 7C Programming Language Part 7
C Programming Language Part 7
Rumman Ansari
 
C Programming Language Part 6
C Programming Language Part 6C Programming Language Part 6
C Programming Language Part 6
Rumman Ansari
 
C Programming Language Part 5
C Programming Language Part 5C Programming Language Part 5
C Programming Language Part 5
Rumman Ansari
 
C Programming Language Part 4
C Programming Language Part 4C Programming Language Part 4
C Programming Language Part 4
Rumman Ansari
 
C Programming Language Step by Step Part 5
C Programming Language Step by Step Part 5C Programming Language Step by Step Part 5
C Programming Language Step by Step Part 5
Rumman Ansari
 

More from Rumman Ansari (20)

Sql tutorial
Sql tutorialSql tutorial
Sql tutorial
 
C programming exercises and solutions
C programming exercises and solutions C programming exercises and solutions
C programming exercises and solutions
 
Java Tutorial best website
Java Tutorial best websiteJava Tutorial best website
Java Tutorial best website
 
Java Questions and Answers
Java Questions and AnswersJava Questions and Answers
Java Questions and Answers
 
servlet programming
servlet programmingservlet programming
servlet programming
 
C program to write c program without using main function
C program to write c program without using main functionC program to write c program without using main function
C program to write c program without using main function
 
Steps for c program execution
Steps for c program executionSteps for c program execution
Steps for c program execution
 
Pointer in c program
Pointer in c programPointer in c program
Pointer in c program
 
My first program in c, hello world !
My first program in c, hello world !My first program in c, hello world !
My first program in c, hello world !
 
How c program execute in c program
How c program execute in c program How c program execute in c program
How c program execute in c program
 
What is identifier c programming
What is identifier c programmingWhat is identifier c programming
What is identifier c programming
 
Type casting in c programming
Type casting in c programmingType casting in c programming
Type casting in c programming
 
C Programming Language Part 11
C Programming Language Part 11C Programming Language Part 11
C Programming Language Part 11
 
C Programming Language Part 9
C Programming Language Part 9C Programming Language Part 9
C Programming Language Part 9
 
C Programming Language Part 8
C Programming Language Part 8C Programming Language Part 8
C Programming Language Part 8
 
C Programming Language Part 7
C Programming Language Part 7C Programming Language Part 7
C Programming Language Part 7
 
C Programming Language Part 6
C Programming Language Part 6C Programming Language Part 6
C Programming Language Part 6
 
C Programming Language Part 5
C Programming Language Part 5C Programming Language Part 5
C Programming Language Part 5
 
C Programming Language Part 4
C Programming Language Part 4C Programming Language Part 4
C Programming Language Part 4
 
C Programming Language Step by Step Part 5
C Programming Language Step by Step Part 5C Programming Language Step by Step Part 5
C Programming Language Step by Step Part 5
 

Recently uploaded

AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 

Recently uploaded (20)

AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 

What is token c programming

  • 2. What is Token C tokens are the basic buildings blocks in C language which are constructed together to write a C program. Each and every smallest individual units in a C program are known as C tokens
  • 3. Types of Token In C Programming tokens are of six types. They are, I. Keywords (ex: int, while,float), II. Identifiers (ex: sum, total), III. Constants (ex: 10, 20), IV. Strings (ex: “ram”, “hello”), V. Special symbols (ex: (), {}), VI. Operators (ex: +, /,-,*)
  • 4. C TOKENS EXAMPLE PROGRAM #include<stdio.h> void main() { int x, y, sum; x = 6, y = 6; sum = x + y; printf ("Total = %d n", sum); } main – identifier {,}, (,) – delimiter int – keyword x, y, sum – identifier main, {, }, (, ), int, x, y, sum – tokens output Total = 12 Press any key to continue . . .
  • 5. Conclusion That means C program consists of various tokens and a token is either a keyword, an identifier, a constant, a string literal, Special symbols or a operator. For example, the following C statement consists of five tokens printf(“welcome heren”); The individual tokens are − printf ( “welcome heren” ) ;
  • 6. Token Examples No Token Type Example 1 Example 2 1 Keyword do while 2 Constants number sum 3 Identifier -66 69 4 String “Hello” “Prem” 5 Special Symbol (), {} @ 6 Operators ++ /