1

Possible Duplicate:
What does the operation c=a+++b mean?

When it comes to four lines of C code, what would a compiler do and why?

  int a = 1, b = 2;
  a+++b;
  a---b;
  a++-b;
  a-++b;

I heard about a terminology like 'greedy compiler', could anyone explain a little further?

Thanks a lot.

Community
  • 1
  • 1
Chao Zhang
  • 1,476
  • 2
  • 14
  • 25

0 Answers0