Friday, September 21, 2018

Can variables be used in low level languages

Earlier machine language or assembly language was used for writing programs.In such languages,if you need to store data,then the exact storage location inside the memory of the computer has to be assigned.This storage location refers to a specific memory address,which is represented in terms of hexadecimal numbers such as 006FF,112ED.
If you have to store 100 different values,then you have to remember the address of 100 different memoryblocations where the values are stored.This becomes tedious and to avoid this high-level languages are used.
High level languages allow you to use symbolic names known as variables,to refer to the memory location where a particular value is to be stored.

No comments:

Post a Comment