Correct Answer - Option 4 : what is assigned is compiler dependent
EXPLANATION:
This question can be solved in two different ways by different compilers:
1. First perform n++ then calculate ++n for index value
2. Calculate ++n for index value initially and then find n++. Therefore different compilers can solve this code in one of the above ways. Hence, the correct answer is "option 4".
Increment operation is of two types:
1. Pre increment (++n): Increase the value first & then substitute the value in variable n.
2. Post increment (n++): Initially substitute the value in n & then increase the value of n.