Possible Duplicate:
Could anyone explain these undefined behaviors (i = i++ + ++i , i = i++, etc…)
Undefined Behavior and Sequence Points (C++ FAQ entry)
In C and C++ how is the expression x+++++y parsed? As x++ ++ +y or as x++ + ++y ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
x+++++yis parsed asx ++ ++ + yand not asx ++ + ++ y. According to Maximal Munch principle “the tokenizer should keep reading characters from the source file until adding one more character causes the current token to stop making sense“x++ ++ +yshould not compile(In C and C++) because the post-increment operator++requires anlvalueas an argument and returns anrvalue.