- 2
Find the output...??
class increment { public static void main (string args[]) { int g=3; System.out.println(++g*8); } }
2 Answers
+ 12
Pre increment operator increments g by 1 and then multiplies it with 8 i.e. 4*8 = 32!
+ 6
Use Code Playground ~_~