What is the difference between a variable and an identifier?

  • Google+ icon
  • LinkedIn icon

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).

Chris D. A Level Computing tutor, A Level Maths tutor, GCSE Maths tut...

About the author

is an online A Level Computing tutor with MyTutor studying at Bath University

Still stuck? Get one-to-one help from a personally interviewed subject specialist.

95% of our customers rate us

Browse tutors

We use cookies to improve your site experience. By continuing to use this website, we'll assume that you're OK with this. Dismiss