Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have confusion what is
difference between keywords and standard identifers


my question is that standard identifers are also have predefined meaning and keywords are also have predefined meaning


then what is difference between them?
Posted
Updated 9-Sep-11 4:28am
v2

Keywords are tokens that are a specific part of the C# language, and which tell the compiler what you are trying to do. Identifiers are reletaed to your application, and tell the compiler what you are trying to do things to.

If you like, a car is a keyword, the towns you drive through to get from A to B are the identifiers.
 
Share this answer
 
Comments
Mehdi Gholam 9-Sep-11 10:18am    
My 5!
"Standard identifiers" is a C++ concept. As far as I know, it does not apply to C#.

C++ standard allows two kinds of keywords[^] - language-specific and compiler-specific. Language-specific keywords are called "keywords"; compiler-specific keywords are called "standard identifiers".
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900