Difference between revisions of "Identifier"

esse quam videri
Jump to: navigation, search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  
 
=Definition=
 
=Definition=
 
+
The identifier is a user-created name that is used to label program elements. The identifier can be thought of as the variable's "name" that you'll call when you want to access it.
 
=Relevance=
 
=Relevance=
 +
If variables wore name tags, the name tag itself is called the identifier.
 +
=Example=
 +
<syntaxhighlight lang ="csharp">
 +
string firstName = "John"; // The identifier of the string is firstName
 +
string lastName = "Doe"; // The identifier of the string is lastName
 +
</syntaxhighlight>
  
=Explanation=
+
[[File:Identifier.png|512px]]
  
 
 
=Resources=
 
 
== See also ==
 
== See also ==
 
* [[Variable]]
 
* [[Variable]]
 
==Notes==
 
<syntaxhighlight lang ="csharp">
 
int i=9;
 
</syntaxhighlight>
 
 
==External Links==
 
  
  

Latest revision as of 21:30, 8 August 2019

Definition

The identifier is a user-created name that is used to label program elements. The identifier can be thought of as the variable's "name" that you'll call when you want to access it.

Relevance

If variables wore name tags, the name tag itself is called the identifier.

Example

string firstName = "John"; // The identifier of the string is firstName
string lastName = "Doe"; // The identifier of the string is lastName

Identifier.png

See also