关于C指针的一个问题
#include <stdio.h>
#define MAX 10
int i_array[MAX] = {0,2,4,6,8,10,12,14,16,18};
int *i_ptr , count;
float f_array[MAX] = {0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9};
float *f_ptr;
int main (void)
{
i_ptr = i_array;
f_ptr = f_array;
for ( count = 0 ; count < MAX ; count++ )
printf ( "%d\t%f\n", *i_ptr++, *f_ptr++ );
return 0;
}
运行结果
0 0.000000
2 0.100000
4 0.200000
6 0.300000
8 0.400000
10 0.500000
12 0.600000
14 0.700000
16 0.800000
18 0.900000
请按任意键继续. . .
在最后打印这里, *i_ptr++, *f_ptr++ 不是数值+1吗,怎么是会这样