Order of precedence of prefix and postfix | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antworten