A
Q. What is the output of the Java code snippet?
Code:
int a=10, b=20;
int c = a++*2;
int d = --b*2;
System.out.println(c +"," + d);
int c = a++*2;
int d = --b*2;
System.out.println(c +"," + d);
- Correct Answer - Option(C)
- Views: 7
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.