Variables in C#
Variables stores values required by
application in temporary memory locations, a variable represents a named
location in memory for a piece of data. An application can access a piece of
data by using the variable it has been assigned to variables store values that
an application can change while it is running. Sometimes it is required to store
values temporarily when we perform calculations or pass data between the user,
an application, or a database.
A variable has the following six facets:
1.Name. Unique identifier that refers to
the variable in code.
2. Address. Memory location of the
variable.
3. Data type. Type and size of data that
the variable can store.
4. Value. Value at the address of the
variable.
5. Scope. Defined areas of code that can
access and use the variable.
No comments:
Post a Comment