

1 #include <iostream>
2 using namespace std ;
3
4 int main(void)
5 {
6 int a[] = {6, 7, 8, 9, 10} ;
7 int *p = a ; // p points to the first element 6
8 *(p++) += 123 ; // 6 + 123 = 129, and p points to the second element 7
9
10 printf("%d, %d\n", *p, *(++p)) ; // parameter evaluate order: right->left ++p points to 8
11 return 0 ;
12 }
13
14 // output: 8, 8
15 // parameter evaluate order!