COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A ____ is a named location in memory that stores a value that does not change during the program
A
literal
B
sentinel
C
variable
D
constant
Explanation: 

Detailed explanation-1: -A constant is a named memory location which temporarily stores data that remains the same throughout the execution of the program. The type of a variable indicates what kind of value it will store. The name of a variable is known as its identifier.

Detailed explanation-2: -A variable is a named location in the computer’s memory, used to store a piece data (or information).

Detailed explanation-3: -Constant is a named memory location used to hold a value that CANNOT be changed during the script execution. If a user tries to change a Constant Value, the Script execution ends up with an error.

There is 1 question to complete.