SlideShare una empresa de Scribd logo
1 de 6
What is
Identifier
What is Identifiers
A C identifier refers to name used to identify a variable, function, structures or any
other user-defined item or entity.
Identifier must be unique. They are created to give unique name to a
entity/item/variable name to identify it during the execution of the program
identifier names must be different from keywords. Because Keywords are
predefined, reserved words used in programming .As for Example :You cannot
use double as an identifier because double is a keyword.
Identifiers Example
int roll_no;
double percentge_marks;
float average;
Here, roll_no , percentge_marks , average are identifiers.
Here are some another examples of acceptable identifiers
zakir Ram abc movie_name ab_123
myname50 _temp p a666b9 sum avg multi
Rules for writing an identifier
 The first letter of an identifier should be either a letter or an underscore.
 A valid identifier can have letters (both uppercase and lowercase letters), digits
and underscores.
 There is no rule on length of an identifier. However, the first 31 characters of
identifiers are significant by the compiler.
 Must not contain white space
 Can not use Keyword as a identifier
identifiers in Programming
#include<stdio.h>
int main () {
/* variable definition: */
int variable_1, variable_2;
int variable_3;
variable_1=6;
variable_2=6;
variable_3 = variable_1 + variable_2;
printf("value of c : %d n", variable_3 );
return 0;
}
In this Example identifiers are:
variable_1
variable_2
variable_3
OutPut
value of c : 12
Press any key to continue . . .
Thank You

Más contenido relacionado

La actualidad más candente

Looping statements in C
Looping statements in CLooping statements in C
Looping statements in C
Jeya Lakshmi
 
constants, variables and datatypes in C
constants, variables and datatypes in Cconstants, variables and datatypes in C
constants, variables and datatypes in C
Sahithi Naraparaju
 

La actualidad más candente (20)

Looping statements in C
Looping statements in CLooping statements in C
Looping statements in C
 
String functions in C
String functions in CString functions in C
String functions in C
 
Structure in C
Structure in CStructure in C
Structure in C
 
Strings
StringsStrings
Strings
 
Constant, variables, data types
Constant, variables, data typesConstant, variables, data types
Constant, variables, data types
 
Control statements in c
Control statements in cControl statements in c
Control statements in c
 
INTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMING
 
Fundamentals of c programming
Fundamentals of c programmingFundamentals of c programming
Fundamentals of c programming
 
Character set of c
Character set of cCharacter set of c
Character set of c
 
constants, variables and datatypes in C
constants, variables and datatypes in Cconstants, variables and datatypes in C
constants, variables and datatypes in C
 
Data types in C
Data types in CData types in C
Data types in C
 
Strings in c++
Strings in c++Strings in c++
Strings in c++
 
Character set in c
Character set in cCharacter set in c
Character set in c
 
Notes of c programming 1st unit BCA I SEM
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEM
 
Arrays and Strings
Arrays and Strings Arrays and Strings
Arrays and Strings
 
Function in C program
Function in C programFunction in C program
Function in C program
 
Decision making statements in C programming
Decision making statements in C programmingDecision making statements in C programming
Decision making statements in C programming
 
Functions in C
Functions in CFunctions in C
Functions in C
 
Array in c
Array in cArray in c
Array in c
 
Introduction to c++ ppt
Introduction to c++ pptIntroduction to c++ ppt
Introduction to c++ ppt
 

Destacado

Identify variable and measurement of scale
Identify variable and measurement of scaleIdentify variable and measurement of scale
Identify variable and measurement of scale
Janisha Gandhi
 

Destacado (20)

The state of the environment seminar
The state of the environment seminarThe state of the environment seminar
The state of the environment seminar
 
DMPTool Webinar 5: Promoting institutional services with the DMPTool; EZID as...
DMPTool Webinar 5: Promoting institutional services with the DMPTool; EZID as...DMPTool Webinar 5: Promoting institutional services with the DMPTool; EZID as...
DMPTool Webinar 5: Promoting institutional services with the DMPTool; EZID as...
 
Identify variable and measurement of scale
Identify variable and measurement of scaleIdentify variable and measurement of scale
Identify variable and measurement of scale
 
what is compiler and five phases of compiler
what is compiler and five phases of compilerwhat is compiler and five phases of compiler
what is compiler and five phases of compiler
 
план виховної роботи на і семестр 2014 2015 вовченко о.м.
план виховної роботи на і семестр  2014  2015 вовченко о.м.план виховної роботи на і семестр  2014  2015 вовченко о.м.
план виховної роботи на і семестр 2014 2015 вовченко о.м.
 
запрошуємо на каву!
запрошуємо на каву!запрошуємо на каву!
запрошуємо на каву!
 
запобігання дитячому травматизму від внп
запобігання дитячому травматизму від внпзапобігання дитячому травматизму від внп
запобігання дитячому травматизму від внп
 
ознаки отруєння газом
ознаки отруєння газомознаки отруєння газом
ознаки отруєння газом
 
відповідаючи перед майбутнім
відповідаючи перед майбутнімвідповідаючи перед майбутнім
відповідаючи перед майбутнім
 
дорожні знаки
дорожні знакидорожні знаки
дорожні знаки
 
правила безпечного користування побутовими газовими
правила безпечного користування побутовими газовимиправила безпечного користування побутовими газовими
правила безпечного користування побутовими газовими
 
Lead Generation System For LinkedIn
Lead Generation System For LinkedInLead Generation System For LinkedIn
Lead Generation System For LinkedIn
 
реквієм за убієнних голодом
реквієм за убієнних голодомреквієм за убієнних голодом
реквієм за убієнних голодом
 
уміти допомогти
уміти допомогтиуміти допомогти
уміти допомогти
 
20141211柏セミナー
20141211柏セミナー20141211柏セミナー
20141211柏セミナー
 
Ac1 ez
Ac1 ezAc1 ez
Ac1 ez
 
тема війни та миру
тема війни та мирутема війни та миру
тема війни та миру
 
підсумкове заняття. протипожежна безпека
підсумкове заняття. протипожежна безпекапідсумкове заняття. протипожежна безпека
підсумкове заняття. протипожежна безпека
 
Work.Life.Leader Manifesto
Work.Life.Leader ManifestoWork.Life.Leader Manifesto
Work.Life.Leader Manifesto
 
Job analysis
Job analysisJob analysis
Job analysis
 

Similar a What is identifier c programming

L2 C# Programming Comments, Keywords, Identifiers, Variables.pdf
L2 C# Programming Comments, Keywords, Identifiers, Variables.pdfL2 C# Programming Comments, Keywords, Identifiers, Variables.pdf
L2 C# Programming Comments, Keywords, Identifiers, Variables.pdf
MMRF2
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
Hassan293
 
C the basic concepts
C the basic conceptsC the basic concepts
C the basic concepts
Abhinav Vatsa
 

Similar a What is identifier c programming (20)

C keywords and identifiers
C keywords and identifiersC keywords and identifiers
C keywords and identifiers
 
C Slides
C SlidesC Slides
C Slides
 
L2 C# Programming Comments, Keywords, Identifiers, Variables.pdf
L2 C# Programming Comments, Keywords, Identifiers, Variables.pdfL2 C# Programming Comments, Keywords, Identifiers, Variables.pdf
L2 C# Programming Comments, Keywords, Identifiers, Variables.pdf
 
Tokens In C.pdf
Tokens In C.pdfTokens In C.pdf
Tokens In C.pdf
 
Module 1:Introduction
Module 1:IntroductionModule 1:Introduction
Module 1:Introduction
 
5 introduction-to-c
5 introduction-to-c5 introduction-to-c
5 introduction-to-c
 
Identifier in c
Identifier in cIdentifier in c
Identifier in c
 
C tokens
C tokensC tokens
C tokens
 
CProgrammingTutorial
CProgrammingTutorialCProgrammingTutorial
CProgrammingTutorial
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Fundamentals of C Programming Language
Fundamentals of C Programming LanguageFundamentals of C Programming Language
Fundamentals of C Programming Language
 
Literals,variables,datatype in C#
Literals,variables,datatype in C#Literals,variables,datatype in C#
Literals,variables,datatype in C#
 
PSPC--UNIT-2.pdf
PSPC--UNIT-2.pdfPSPC--UNIT-2.pdf
PSPC--UNIT-2.pdf
 
C the basic concepts
C the basic conceptsC the basic concepts
C the basic concepts
 
Complete Tokens in c/c++
Complete Tokens in c/c++Complete Tokens in c/c++
Complete Tokens in c/c++
 
Programming construction tools
Programming construction toolsProgramming construction tools
Programming construction tools
 
Kernel Adiutor
Kernel AdiutorKernel Adiutor
Kernel Adiutor
 
C programming tutorial
C programming tutorialC programming tutorial
C programming tutorial
 
C# lecture 2: Literals , Variables and Data Types in C#
C# lecture 2: Literals , Variables and Data Types in C#C# lecture 2: Literals , Variables and Data Types in C#
C# lecture 2: Literals , Variables and Data Types in C#
 
C introduction
C introductionC introduction
C introduction
 

Más de Rumman Ansari

Más de 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 token c programming
What is token c programmingWhat is token c programming
What is token c programming
 
What is keyword in c programming
What is keyword in c programmingWhat is keyword in c programming
What is keyword in 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
 

Último

Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Último (20)

Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 

What is identifier c programming

  • 2. What is Identifiers A C identifier refers to name used to identify a variable, function, structures or any other user-defined item or entity. Identifier must be unique. They are created to give unique name to a entity/item/variable name to identify it during the execution of the program identifier names must be different from keywords. Because Keywords are predefined, reserved words used in programming .As for Example :You cannot use double as an identifier because double is a keyword.
  • 3. Identifiers Example int roll_no; double percentge_marks; float average; Here, roll_no , percentge_marks , average are identifiers. Here are some another examples of acceptable identifiers zakir Ram abc movie_name ab_123 myname50 _temp p a666b9 sum avg multi
  • 4. Rules for writing an identifier  The first letter of an identifier should be either a letter or an underscore.  A valid identifier can have letters (both uppercase and lowercase letters), digits and underscores.  There is no rule on length of an identifier. However, the first 31 characters of identifiers are significant by the compiler.  Must not contain white space  Can not use Keyword as a identifier
  • 5. identifiers in Programming #include<stdio.h> int main () { /* variable definition: */ int variable_1, variable_2; int variable_3; variable_1=6; variable_2=6; variable_3 = variable_1 + variable_2; printf("value of c : %d n", variable_3 ); return 0; } In this Example identifiers are: variable_1 variable_2 variable_3 OutPut value of c : 12 Press any key to continue . . .