Correct Answer - Option 1 : value of i to be assigned to C, and then I to be incremented by 1
Concept:
Meaning of i++:
First, we read the i than after reading the value of i we are going to increment i this is nothing but post-increment.
Meaning of ++i:
First, we increment i than we read the value of I, this is nothing but pre-increment:
Examine code:
int main( )
{
int i = 10;
int C = i++; // assign i to C therefore C = 10 after assigning increment i by 1
printf("i = %d, C = %d", i, C);
return 0;
}
Output:
i = 11, C = 10
Therefore value of i to be assigned to C, and then I to be incremented by 1