a variable definition tells the computer

Best answer


A variable is a way of referring to astorage area in a computer program. This memory location holds values鈥攏umbers,text or more complicated types of data like payroll records.

People also ask


  • What does a variable definition mean?

  • A variable definition tells the compiler where and how much storage to create for the variable. A variable definition specifies a data type, and contains a list of one or more variables of that type as follows 鈭?/div>C++ Variable Types – Tutorialspoint

  • What determines the type of a variable?

  • The type also determines the position and size of the variable’s memory, the range of values that it can store and the operations that can be applied to the variable. A few basic variable types include:

  • What is a a variable in C++?

  • A variable provides us with named storage that our programs can manipulate. Each variable in C++ has a specific type, which determines the size and layout of the variable’s memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable. The name of a variable can be composed of …

  • How does an operating system know where a variable is stored?

  • Operating systems load programs into different parts of the computer’s memory so there is no way of knowing exactly which memory location holds a particular variable before the program is run. When a variable is assigned a symbolic name like employee_payroll_id, the compiler or interpreter can work out where to store the variable in memory.

    Leave a Reply

    Your email address will not be published. Required fields are marked *