COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ is used to denote when the program will stop.
A
FINISH
B
BEGIN
C
END
D
ELSE
Explanation: 

Detailed explanation-1: -Answer: The end statement statement is used to terminate the program.

Detailed explanation-2: -The end statement is the last line of the program or function. The stop or return statements are used for normal termination and exit is used for abnormal termination.

Detailed explanation-3: -The END statement is used to mark the end of a Natural program, function, subprogram, external subroutine or helproutine. Every one of these objects must contain an END statement as the last statement. Every object may contain only one END statement.

Detailed explanation-4: -C library function-exit() The C library function void exit(int status) terminates the calling process immediately. Any open file descriptors belonging to the process are closed and any children of the process are inherited by process 1, init, and the process parent is sent a SIGCHLD signal.

Detailed explanation-5: -– used to mark the end of the program. The semicolon, as a mark separating statements, corresponds to the ordinary English usage of separating independent clauses and gives the entire program the gross syntax of a single ordinary sentence.

There is 1 question to complete.