-3

How does the following code work?

main()
{
    int x = 20, y = 33;
    x=y++ + x++;
    y=++y + ++x;
    printf("%d%d", x, y);
}

What is the value of x and y? How the post increment takes place?

1 Answers1

0

It is compiler dependent . It has side effects .

Gibbs
  • 21,904
  • 13
  • 74
  • 138