Consider the following program:
The value printed by the above program is:
I think it will be undefined behaviour because of:
arr[count++] = incr();
But I am not sure. need to confirm.
@Anu see Example 2 at the end of this selected answer: https://stackoverflow.com/questions/4176328/undefined-behavior-and-sequence-points
@Rishabh Gupta shouldn't it be arr = 1 as it will store the value returned by the function call incr() which is 1 and then count++ makes value of count as 2 to be used in the next printf statment?