/*****
 * Testing pre and post increment operators and their side effects.
 * (In Perl 5.8.0 these two expressions give different answers.)
 ******/

int noop(int x){
  return x;
}
int main(){
  int m=20;
  printf("m=20; ++m + m++ is %i\n", ++m + m++);
  m=20;
  printf("m=20; noop(++m) + m++ is %i\n", noop(++m) + m++);
}

syntax highlighted by Code2HTML, v. 0.93pm6