* ++ 的优先级

来源:互联网 发布:linux网络代理服务器 编辑:程序博客网 时间:2024/05/03 07:57

*p++   =  *(p++)       ++ 的优先级大于*

main()

{

char *ptr = ” Cisco Systems”;

*ptr++; printf(“%sn”,ptr);

这个函数能运行

main()

{

char *ptr = ” Cisco Systems”;

(*ptr)++; printf(“%sn”,ptr); 

这个函数编译错误 不能在字符常量上改变