- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Difference Between Keyword and Identifier
In this post, we will understand the difference between a keyword and an identifier.
Keyword
They define a specific kind of entity.
It always starts with a lower case letter.
They are pre-defined words that are reserved to work with programs.
They can’t be used anywhere else.
It can only contain alphabetical characters.
It helps identify specific property which exists within a language.
There are special symbols or punctuations used.
Example
auto break case char const continue default do double else enum extern float for goto if int long register return short signed sizeof static struct switch typedef union unsigned void volatile while
Identifier
All of them are not variables.
They are used to name a variable, a function, a class, a structure, a union.
It is created to give a unique name to an entity.
They can consist of alphabets, digits, and underscores.
There is no punctuation or special symbol, except the underscore.
It can be upper case or lower case.
It helps locate the name of the entity which is defined along with a keyword.
Example
enum geeks_artiles_in {Jan=1, Feb, Mar, Apr, May, June, July}
- Related Articles
- Difference Between Identifier and Variable
- Difference between readonly and const keyword in C#
- Difference between out and ref keyword in C#
- What is the difference between #define and const Keyword in C++?
- Organizationally Unique Identifier
- JavaScript this Identifier
- State differences between Data Driven and Keyword Driven Framework.
- __func__ identifier in C
- Difference Between & and &&
- Order MySQL results without identifier?
- Predefined Identifier __func__ in C
- What is an identifier and its rules in C language?
- Difference between Voltage Drop and Potential Difference
- Difference between C# and .Net
- Difference between Process and Thread
