What does a computer do when it executes a variable declaration statement ? Give an example.
Answers
Answered by
5
Answer:
it overwrites the new value over the previous value
Answered by
8
Details on executing a variable declaration statement
Explanation:
- A variable is a location, that has a name in the computer's memory. The position holds some defined form of value. A statement for a variable declaration is a statement like an int x; that creates the variable x.
- When a variable declaration is executed by the system, it generates the location in the memory and assigns a name (in this case, x) to that location. The variable can be referenced by name later in the program.
Similar questions