17. What is the result when you compile and run the following code?
Choices:
a. 0122
b. 0123
c. Compilation error
d. None of these
Answer:-
C is correct.
The code on compilation will give compile time error because the scope of variable i is only within "for" loop.
Choices:
a. 0122
b. 0123
c. Compilation error
d. None of these
Answer:-
C is correct.
The code on compilation will give compile time error because the scope of variable i is only within "for" loop.
No comments:
Post a Comment