0

if x=5, y=4; cout<< x++* y--; what will print?

21st Nov 2016, 10:46 AM
Mahbub
Mahbub - avatar
3 Réponses
+ 1
it will print 20 but after printing the values will be x=6 y=3
21st Nov 2016, 10:56 AM
Ethan
Ethan - avatar
+ 1
20 will be printed into the screen final result is a bit general since the code could continue after that cout command (u might continue using y and x - maybe its a loop for example)
21st Nov 2016, 11:02 AM
Ethan
Ethan - avatar
0
so, final result 20?
21st Nov 2016, 11:00 AM
Mahbub
Mahbub - avatar