SlideShare a Scribd company logo
 Course Code: CSE-121
 Course Title: Computer Programming
 Submitted To:
 M.Nahid Reza
 Lecturer, Dept. of EEE
 Daffodil International University
 Submitted by:
 01.Ripon Hossain ID:172-33-4008
 02. Naeem Hasan ID:172-33-4135
 03.Md.Shamim Ahosan ID:172-33-4207
 Section: B
 Dept. of EEE (Evening)
 Daffodil International University
 Date of Submission: August 16, 2017
C TOKENS
Presentation Topic
Introduction to C Tokens
Types of C Tokens
Keywords
Identifiers
Constants
Strings
Special Symbols
Operators
Objectives
In a Passage of text,indiviual words and punctuation
marks are called tokens.similarly in C programming the
smallest individual units are known as C tokens.
C language has six types of tokens, and programs are
written using these tokens, and the syntax of the
language.
Introduction to C Tokens
C Tokens
Keywords Identifiers Constants Strings
Special
Symbols
Operators
Types of C Tokens
 Keywords serves as the building blocks for a program statements.All
keywords have a fixed meaning and cannot be changed.
 Keywords cannot be used as normal identifier names.
 Few examples of keywords used in C are listed below.
Int
break
goto
char
switch
void
Keywords
 Identifier refers to the name of variables,functions and arrays.These are
user defined names and consists of a sequence of letters and digits.
 Both uppercase and lowercase letters can be used,and C language is
case sensitive A special symbol underdscore(_) is also permitted.
 Rules for Identifiers:
 First character must be an alphabet.
 Must consist of only letters,digits or underscore.
 Should not be a keyword should not have any blank space.
 Example:-int num;
char name;
Where num and name are identifier names.
Identifiers
 Constants refers to fixed values that do not change during the execution of a
program.
 Basic types of C constants are shown in the flowchart.
constants
Numeric
constants
Character
constants
Integer
constants
Real
constants
Single
Character
constants
String
constants
Constants
 Strings are nothing but array of characters ended with null character
(“0”).This null character indicates the end of the string.
 Strings are always enclosed by double quotes. Wheras,character is
enclosed by single quotes in C.
Example:-char name [10];
In this example the variable name can store up to 10 bytes.
Strings
 The following special symbols are used in C having some special
meaning and thus,cannot be used for some other purpose.
[ ] ( ) { } , ; : * … = #
Braces{}:These opening and ending curly braces marks the start and
end of a block of code containing more then one executable statement.
Parentheses():These special symbols are used to indicate function
calls and functions parameters.
Brackets[]:opening and closing brackets are used as array element
reference.these indicate single and multidimensional subscripts.
Special
Symbols
 The symboles which are used to perform logical and mathematical operations in
a C program are called C operators.
 Operators used in C program are
 Arithmetic operators
 Assignment operators
 Relational operators
 Logical operators
 Bit Wise operators
 Conditional operators(ternary operators)
 Increment/decrement operators
 Special operators
Operators
C Tokens

More Related Content

What's hot

Operators in C Programming
Operators in C ProgrammingOperators in C Programming
Operators in C Programming
programming9
 
Programming in C Presentation upto FILE
Programming in C Presentation upto FILEProgramming in C Presentation upto FILE
Programming in C Presentation upto FILE
Dipta Saha
 
Scope rules : local and global variables
Scope rules : local and global variablesScope rules : local and global variables
Scope rules : local and global variables
sangrampatil81
 
Variables in C Programming
Variables in C ProgrammingVariables in C Programming
Variables in C Programming
programming9
 
String functions in C
String functions in CString functions in C
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
 
Storage class in C Language
Storage class in C LanguageStorage class in C Language
Storage class in C Language
Nitesh Kumar Pandey
 
Functions in c language
Functions in c language Functions in c language
Functions in c language
tanmaymodi4
 
C functions
C functionsC functions
arrays and pointers
arrays and pointersarrays and pointers
arrays and pointers
Samiksha Pun
 
Variables in C and C++ Language
Variables in C and C++ LanguageVariables in C and C++ Language
Variables in C and C++ Language
Way2itech
 
Function in C program
Function in C programFunction in C program
Function in C program
Nurul Zakiah Zamri Tan
 
SPL 9 | Scope of Variables in C
SPL 9 | Scope of Variables in CSPL 9 | Scope of Variables in C
SPL 9 | Scope of Variables in C
Mohammad Imam Hossain
 
Identifiers
Identifiers Identifiers
Identifiers
Then Murugeshwari
 
C Language
C LanguageC Language
C Language
Aakash Singh
 
Tokens in C++
Tokens in C++Tokens in C++
Tokens in C++
Mahender Boda
 
Break and continue
Break and continueBreak and continue
Break and continue
Frijo Francis
 
Header files in c
Header files in cHeader files in c
Header files in c
HoneyChintal
 
Function in c
Function in cFunction in c
Function in c
Raj Tandukar
 
Structure of a C program
Structure of a C programStructure of a C program
Structure of a C program
David Livingston J
 

What's hot (20)

Operators in C Programming
Operators in C ProgrammingOperators in C Programming
Operators in C Programming
 
Programming in C Presentation upto FILE
Programming in C Presentation upto FILEProgramming in C Presentation upto FILE
Programming in C Presentation upto FILE
 
Scope rules : local and global variables
Scope rules : local and global variablesScope rules : local and global variables
Scope rules : local and global variables
 
Variables in C Programming
Variables in C ProgrammingVariables in C Programming
Variables in C Programming
 
String functions in C
String functions in CString functions in C
String functions in C
 
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
 
Storage class in C Language
Storage class in C LanguageStorage class in C Language
Storage class in C Language
 
Functions in c language
Functions in c language Functions in c language
Functions in c language
 
C functions
C functionsC functions
C functions
 
arrays and pointers
arrays and pointersarrays and pointers
arrays and pointers
 
Variables in C and C++ Language
Variables in C and C++ LanguageVariables in C and C++ Language
Variables in C and C++ Language
 
Function in C program
Function in C programFunction in C program
Function in C program
 
SPL 9 | Scope of Variables in C
SPL 9 | Scope of Variables in CSPL 9 | Scope of Variables in C
SPL 9 | Scope of Variables in C
 
Identifiers
Identifiers Identifiers
Identifiers
 
C Language
C LanguageC Language
C Language
 
Tokens in C++
Tokens in C++Tokens in C++
Tokens in C++
 
Break and continue
Break and continueBreak and continue
Break and continue
 
Header files in c
Header files in cHeader files in c
Header files in c
 
Function in c
Function in cFunction in c
Function in c
 
Structure of a C program
Structure of a C programStructure of a C program
Structure of a C program
 

Similar to C Tokens

C presentation book
C presentation bookC presentation book
C presentation book
krunal1210
 
C programming tutorial
C programming tutorialC programming tutorial
C programming tutorial
Mohit Saini
 
C introduction
C introductionC introduction
C introduction
AswathyBAnil
 
Cnotes
CnotesCnotes
Module 1 PCD.docx
Module 1 PCD.docxModule 1 PCD.docx
Module 1 PCD.docx
VijayKumar886687
 
C Slides
C SlidesC Slides
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
 
Diploma ii cfpc u-2 datatypes and variables in c language
Diploma ii  cfpc u-2 datatypes and variables in c languageDiploma ii  cfpc u-2 datatypes and variables in c language
Diploma ii cfpc 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
 
Bsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c languageBsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c language
Rai University
 
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
 
Complete Tokens in c/c++
Complete Tokens in c/c++Complete Tokens in c/c++
Complete Tokens in c/c++
Shobi P P
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
gautam buddha university
 
Features and Fundamentals of C Language for Beginners
Features and Fundamentals of C Language for BeginnersFeatures and Fundamentals of C Language for Beginners
Features and Fundamentals of C Language for Beginners
Chandrakant Divate
 
computer science tokens in c++ for school students
computer science tokens in c++ for school studentscomputer science tokens in c++ for school students
computer science tokens in c++ for school students
DevipriyaRajendran1
 
Tokens In C.pdf
Tokens In C.pdfTokens In C.pdf
Tokens In C.pdf
Gimnoy
 
Constants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya JyothiConstants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya Jyothi
SowmyaJyothi3
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdf
BalamuruganV28
 
C Tutorial
C TutorialC Tutorial
C Tutorial
Dr.Subha Krishna
 
cunit1.pptx
cunit1.pptxcunit1.pptx
cunit1.pptx
zeenatparveen24
 

Similar to C Tokens (20)

C presentation book
C presentation bookC presentation book
C presentation book
 
C programming tutorial
C programming tutorialC programming tutorial
C programming tutorial
 
C introduction
C introductionC introduction
C introduction
 
Cnotes
CnotesCnotes
Cnotes
 
Module 1 PCD.docx
Module 1 PCD.docxModule 1 PCD.docx
Module 1 PCD.docx
 
C Slides
C SlidesC Slides
C Slides
 
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
 
Diploma ii cfpc u-2 datatypes and variables in c language
Diploma ii  cfpc u-2 datatypes and variables in c languageDiploma ii  cfpc u-2 datatypes and variables in c language
Diploma ii cfpc u-2 datatypes and variables in c language
 
datatypes and variables in c language
 datatypes and variables in c language datatypes and variables in c language
datatypes and variables in c language
 
Bsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c languageBsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c language
 
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
 
Complete Tokens in c/c++
Complete Tokens in c/c++Complete Tokens in c/c++
Complete Tokens in c/c++
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Features and Fundamentals of C Language for Beginners
Features and Fundamentals of C Language for BeginnersFeatures and Fundamentals of C Language for Beginners
Features and Fundamentals of C Language for Beginners
 
computer science tokens in c++ for school students
computer science tokens in c++ for school studentscomputer science tokens in c++ for school students
computer science tokens in c++ for school students
 
Tokens In C.pdf
Tokens In C.pdfTokens In C.pdf
Tokens In C.pdf
 
Constants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya JyothiConstants Variables Datatypes by Mrs. Sowmya Jyothi
Constants Variables Datatypes by Mrs. Sowmya Jyothi
 
CS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdfCS 3251 Programming in c all unit notes pdf
CS 3251 Programming in c all unit notes pdf
 
C Tutorial
C TutorialC Tutorial
C Tutorial
 
cunit1.pptx
cunit1.pptxcunit1.pptx
cunit1.pptx
 

Recently uploaded

Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 

Recently uploaded (20)

Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 

C Tokens

  • 1.
  • 2.  Course Code: CSE-121  Course Title: Computer Programming  Submitted To:  M.Nahid Reza  Lecturer, Dept. of EEE  Daffodil International University  Submitted by:  01.Ripon Hossain ID:172-33-4008  02. Naeem Hasan ID:172-33-4135  03.Md.Shamim Ahosan ID:172-33-4207  Section: B  Dept. of EEE (Evening)  Daffodil International University  Date of Submission: August 16, 2017
  • 4. Introduction to C Tokens Types of C Tokens Keywords Identifiers Constants Strings Special Symbols Operators Objectives
  • 5. In a Passage of text,indiviual words and punctuation marks are called tokens.similarly in C programming the smallest individual units are known as C tokens. C language has six types of tokens, and programs are written using these tokens, and the syntax of the language. Introduction to C Tokens
  • 6. C Tokens Keywords Identifiers Constants Strings Special Symbols Operators Types of C Tokens
  • 7.  Keywords serves as the building blocks for a program statements.All keywords have a fixed meaning and cannot be changed.  Keywords cannot be used as normal identifier names.  Few examples of keywords used in C are listed below. Int break goto char switch void Keywords
  • 8.  Identifier refers to the name of variables,functions and arrays.These are user defined names and consists of a sequence of letters and digits.  Both uppercase and lowercase letters can be used,and C language is case sensitive A special symbol underdscore(_) is also permitted.  Rules for Identifiers:  First character must be an alphabet.  Must consist of only letters,digits or underscore.  Should not be a keyword should not have any blank space.  Example:-int num; char name; Where num and name are identifier names. Identifiers
  • 9.  Constants refers to fixed values that do not change during the execution of a program.  Basic types of C constants are shown in the flowchart. constants Numeric constants Character constants Integer constants Real constants Single Character constants String constants Constants
  • 10.  Strings are nothing but array of characters ended with null character (“0”).This null character indicates the end of the string.  Strings are always enclosed by double quotes. Wheras,character is enclosed by single quotes in C. Example:-char name [10]; In this example the variable name can store up to 10 bytes. Strings
  • 11.  The following special symbols are used in C having some special meaning and thus,cannot be used for some other purpose. [ ] ( ) { } , ; : * … = # Braces{}:These opening and ending curly braces marks the start and end of a block of code containing more then one executable statement. Parentheses():These special symbols are used to indicate function calls and functions parameters. Brackets[]:opening and closing brackets are used as array element reference.these indicate single and multidimensional subscripts. Special Symbols
  • 12.  The symboles which are used to perform logical and mathematical operations in a C program are called C operators.  Operators used in C program are  Arithmetic operators  Assignment operators  Relational operators  Logical operators  Bit Wise operators  Conditional operators(ternary operators)  Increment/decrement operators  Special operators Operators