Order of precedence of prefix and postfix | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse