c基础
#include<stdio.h>
void main()
{
?char *p="abcdef";
?printf("%c,%c\n",*p,*p++);
?printf("%c,%c\n",*p,*p++);
}
輸出為:b,a
?????????? c,b
#include<stdio.h>
void main()
{
?char *p="abcdef";
?printf(“%c\n",*p);
printf("%c\n",*p++);
}
輸出為 a
????????? a
解:函數計算順序從右至左
轉載于:https://www.cnblogs.com/fivecool/archive/2012/10/23/2735405.html
總結
- 上一篇: 解决Sqlite中的中文路径问题
- 下一篇: 向webServices请求失败