#include <stdio.h>

int main()
{
    int i = 0;
    int j = 0;
    j = i++ + ++i;
    printf("%d %d", i, j);
return 0;
}

After compilation and run, the output is i = 2 and j = 2

I don't understand how the final values of i and j are calculated

I just want to understand about precedence and associativity in this specific example of code

0

There are 0 best solutions below