例子

char *str = "12345678";

for(char i=0;i<8;i++) {
printf("str[%d] = %c(%d) \n", i,*str,*str);
str++;
}

输出

str[0] = 1(49)

str[1] = 2(50)

str[2] = 3(51)

str[3] = 4(52)

str[4] = 5(53)

str[5] = 6(54)

str[6] = 7(55)

str[7] = 8(56)