answersLogoWhite

0

An identifier is simply the name of something, while a variable is an instance of something.

For example:

int x;

Here, the identifier is "x," but the variable is the object whose name is "x." A: An identifier is a name of something. Typically used in computer programming, the term "identifier" is frequently used to name a variable (see below), a subroutine, are in reality, any place in memory in which data or code reside where a name would be useful. "MyBirthDate" might be a good identifier, pointing to a memory location where the data contianing your date of birth is stored. The term variable comes to us from mathematics, but is frequently used in computer science too. It refers to a value that varies. For instance: a + b = 5 In this case, the value of a and b can change, so long as the sum of a and b equal 5. The opposite of the term variable is constant. In the equation, E=Mc2, c is a constant that is equal to the speed of light in a vacu -- +- 186,000 miles per second. In computer science, the term "variable" is used synonymously with "identifier" when they are both used to point to memory that contains data that may be changed and will not always be the same. In Microsoft BASIC, the statement: Tomorrow = Today + 1 Today and Tomorrow are variables, and 1 is a constant.

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

What is the difference between identifiers and variables in C lang?

a variable having the datattype and name, an identifier is the name of the variable for example int x; here int x; is the variable x is the identifier


Is variable is also called as identifier?

No, the name of the variable is its identifier.


What is the difference between an identifier and a literal?

yes.


The difference between fixed and variable inputs?

difference between fixed and variable inputs


What is the similarity between an identifier and a variable?

Answer:- identifier is the name like a, b, c, .... which is used to reference a memory location in a program. +-variable is the actual memory location which can hold values.so 'a' is an identifier to a variable which is memory location located somewhere in memory.Answer:A Variable in Java is something that holds a particular value in a class. For example:public class A { private String name = ""; ......} In the above declaration name is a variable. It would hold the data of type String.An Identifier is nothing but the name that we give for our variables, classes, methods etc. It is nothing but the name with which we identify an entity in Java. For example here A is the identifier for the class, name is the identifier for the variable etc.


Difference between variable resistor and rheostat?

The difference between a variable resistor and a rheostat is the same as the difference between six and half a dozen.


What the difference between a variable and control?

The difference between a controlled variable and a variable is in their state. A controlled variable is something which is rigid and constant while a variable is liable to change and inconsistent.


What is the difference between 'a' and a in C?

a -- identifier 'a' -- character-literal "a" -- string-literal


WAP to show the difference between a variable and static variable?

difference between constant and static variables in java


What is the difference between a variable being tested and a variable being controlled?

The difference between these both is that the control is what stays the same in an experiment and the variable is what changes.


What is one difference between a variable and a numerical expression?

The variable.


What is the difference between an ISBN and a DOI?

An ISBN is a unique identifier for books, while a DOI is a unique identifier for digital documents and research articles.