sreenath205
Programmer
Hi all,
Out put :42
When the same code in c/c++ gives unpredictable answer ,how is java doing the magic
Thanks in advance
Sreenath m
Code:
-------------------------------------------------------
class test
{
public static void main(String args[])
{
int i,j;
i=5;
j=++i*++i;
System.out.println(j);
}
}
------------------------------------------------------------
When the same code in c/c++ gives unpredictable answer ,how is java doing the magic
Thanks in advance
Sreenath m