Given the code fragment:
What is the result?
A. The compilation fails due to an error in line 2.
B. 201
C. de
D. 203
E. The compilation fails due to an error in line 3.
F. The compilation fails due to an error in line 1.
Given the code fragment:
What is the result?
A. The compilation fails due to an error in line 2.
B. 201
C. de
D. 203
E. The compilation fails due to an error in line 3.
F. The compilation fails due to an error in line 1.
E is correct
B
Note:
char + char is not concatenation. It is addition operation
I will consider “int = y = (int) e” as a typo.
Because, it seems assigning with and without explicit casting is the target of the question.
observer the line before it. assigning values to x and y variables and then targeting the operation in between.