#include <stdio.h>
void main()
{
int i;
i = 1;
printf("number = %d\n",i); // 1
printf("number = %d\n",i+1); // 2
printf("number = %d\n",i+1); // 2
printf("number = %d\n",i); // 1
printf("number = %d\n",i++); // 1
printf("number = %d\n",i++); // 2
printf("number = %d\n",i); // 3
printf("number = %d\n",++i); // 4
printf("number = %d\n",++i); // 5
printf("number = %d\n",i); // 5
printf("number = %d\n",i+=2); // 7
printf("number = %d\n",i+=2); // 9
printf("%d\n",i); // 9
i++;
printf("%d\n",i); // 10
++i;
printf("%d\n",i); // 11
printf("%d\n",i++); // 11
printf("%d\n",i); // 12
printf("%d\n",++i); // 13
printf("%d\n",i); // 13
getchar();
}
| |