Q2. Give the output of the following program segments
Int q=20;
System.out.println(q++);
System.out.println(q++);
System.out.println(q++);
Answers
Answered by
0
Answer:
20
21
22
Explanation:
first it becomes 21 but as it is postfix
the output will not increase
same the following ones
hope it helps u
pls mark it as brainliest
Similar questions