一元运算符*和++具有相等的优先级,结合使用时是从右向左进行的。
total += *start++ // 先把指针指向的数据加到total上,再使指针自增1
total += (*start)++ // 先把指针指向的数据加到total上,再使指针指向的数据自增1
total += *++start //指针先增加1,再把指针指向的数据加到total上
指向常量的指针不能用于修改数值
double rates[5] = {
88.99, 100.12, 59.45, 183.11, 340.5}
const double *pd = rates;
*pd = 29.89;