Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
first line11
second line11
O/p first line :10
O/P Second line :10
The answer should be10
because here
int i=10;
i=i++;
here the i value remain same and it is not a loop (value will be changed based on the loop)
if i=++i in this situation the value become i=11
first: i=10;
second: i=10;
because here using post increment,thats why it uses next usage only.
here i using next level only,we are not insitialisation to another varaible.