i = 0 i = i++ + f1(i) is evaluated as: i = 0 + f1(i) //i value(0) is used first. And then i is incremented to 1 i = 0 + f1(1) // i = 1 here. f1(1) function is called. So 1 is printed. and 0 is returned. now i = 0 + 0(returned value from f1(int) function) so, i = 0 Finally you are printing the value of i which is 0.
i hope i explained clearly..
Joined: Aug 29, 2007
Hello kesava narayana 1st i wanna thanks ,cause really i understand that program follow thor your explanation.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com