Operator precedence in C++
http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B#Operator_precedence
in this page Inserted that Suffix increment Precedence over Prefix
increment but in thi code :
int main()
{
int a=3;
cout<<a++ * 3 + ++a;
getch();
return 0;
}
and result : 16< in this code Prefix increment Precedence over Suffix
increment why? Sorry my English is not good
No comments:
Post a Comment