Geek quiz of the day
Jan. 24th, 2018 04:21 pmUsing only your brain, can you figure out what this will print?
public class Plus5{ public static void main(String[] args){ int i = 1; System.out.println( i++ + ++i ); i = 1; System.out.println( i-- - --i ); } }The code is Java, but I think you'd get the same results from
i++ + ++i
and i-- - --i
in other languages that have those operators.