0

this code output is 22,21 but how

class OperatorExample{ public static void main(String args[]){ int a=10; int b=10; System.out.println(a++ + ++a);//10+12=22 System.out.println(b++ + b++);//10+11=21 }}

17th Dec 2017, 11:11 AM
Aditya Kumar
Aditya Kumar - avatar
1 Answer