当前位置:
首页 >
c基础
发布时间:2024/9/5
42
豆豆
#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请求失败