Then the output is 1 which is expected.But when following code is used
The output is 0 .
According to me
In i = i++ first i is assigned to zero then the increment takes place but why this increment is not shown in print statement.Even though it is modifying same variable i.