C语言自增前缀后缀实例 C语言自增运算符实例 C语言自减运算符实例 C语言自增前缀后缀实例 /* post_pre.c -- postfix vs prefix */ #include <stdio.h> int main(void) { int a = 1, b = 1; int a_post, pre_b; a_post = a++; // value of a++ during assignment phase pre_b = ++b; // value of ++b during assignment phase printf("a a_post b pre_b \n"); printf("%1d %5d %5d %5d\n", a, a_post, b, pre_b); return 0; } C语言自增运算符实例 C语言自减运算符实例