Given the following code fragment. What is the output. int ch = 20; System.out.println ( + + ch); *
21
20
19
22
Answers
Answered by
2
Answer:
21
Explanation:
Given value is pre-incremented
Answered by
1
Answer:
21
Explanation:
since it is pre - increament means (++ch) you have to add 1 to 20 first then you can have your correct answer a
Similar questions
Chemistry,
3 months ago
Math,
3 months ago
Math,
6 months ago
Economy,
6 months ago
Social Sciences,
11 months ago