COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Constant is a quantity place that stores a data that will never be altered during the course of a program.
A
True
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -The value of constant variable remains the same in throughout the program .

Detailed explanation-2: -Answer: A variable is a named memory location which temporarily stores data that can change while the program is running. 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.

Detailed explanation-3: -1. A constant is used to give a name to a value, this makes it easier to read and maintain the code. 2. A constant cannot be of the file or access type.

There is 1 question to complete.