Computer Science, asked by utkarsh6264, 6 months ago

Given the following code fragment. What is the output. int ch = 20; System.out.println ( + + ch); *

21

20

19

22​

Answers

Answered by mahija11
2

Answer:

21

Explanation:

Given value is pre-incremented

Answered by ashurenu09
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