please solve this What will be the output of following snippet? int a =2; a++; System.out.println(a); *
2
1
4
3
Answers
Answered by
2
Output:
3
Explanation:
Initially, a = 2, then it is incremented by 1, so a becomes 3.
Similar questions
Social Sciences,
2 months ago
Physics,
2 months ago
CBSE BOARD XII,
2 months ago
Business Studies,
10 months ago
English,
10 months ago
Biology,
10 months ago