Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   unexpected output (http://www.go4expert.com/forums/unexpected-output-t9022/)

shyam_oec 24Feb2008 22:22

unexpected output
 
Code:

class C
{
  static int f1(int i)
  {
    System.out.print(i+",");
    return 0;
  }

public static void main(String [] args)
  {
    int i=0;
    i=i+++f1(i);
    System.out.print(i);
  }
}

output of this code is 1,0
plz explain how?


All times are GMT +5.5. The time now is 22:12.