Order of precedence of prefix and postfix | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Order of precedence of prefix and postfix

int main() { int x=0; cout<<(x + x++); x=0; cout<<(x++ + x); return 0; } can anyone explain why does both the cout statements give same value? int the first one it should be 0 in second one it should be1

17th Oct 2019, 4:18 AM
ValarTyrin
ValarTyrin - avatar
0 Answers