What is the difference between a variable and an identifier?

A variable is a memory location given a name and a data type. Once a variable has been declared its contents may be modified using its name.
An identifier is the name you give a variable. (In the case of Visual Basic and most other languages this needs to start with a letter and can contain numbers or underscores).

CD

Related Computing A Level answers

All answers ▸

Outline the differences between how a compiler and an interpreter works, and explain the advantages and usage of of each [12 marks]


Describe an IDE and its features in programming. (3 Marks)


Calculate -3 + 3 using Two's Complement and the Sign and Magnitude Method. Which works correctly?


What is the difference between a dynamic and a static data structure?