Monday, November 21, 2016

++ operator on variable used multiple times in single line

Write the output of this code:
        long l = 10;
        System.out.println( "l " + l++ + "; " + l );


Result:
l 10; 11