5 Int X 0 Y 3 X Y X 1 X Y 1 Y Cout X Y X Y Rewrite Q43840349
5. int x = 0, y = 3; x: __________________ y: __________________ x += 1; x: __________________ y -= 1; y: __________________ cout << x << “ “ << y; x: __________________ y: __________________ rewrite:__________________________________________________________
6. int x = 0, y = 3; x: __________________ y: __________________ cout << x << “ “ << y; x: __________________ y: __________________ x += 1; x: __________________ y -= 1; y: __________________ rewrite:__________________________________________________________
7. int x = 0; x: __________________ for (int i = 0; i < 3; i++) { x = x + 1; x: __________________ cout << x <<endl; x: __________________ } rewrite:__________________________________________________________
8. What is the difference between the following if x is zero atthe start of each statement? x += 1; x = x + 1; ++x; x++; 9. Whatis the difference between the following if x is zero at the startof each statement? cout << (x += 1); cout << ++x ; cout<< x++; 10. What are the values if x = 1 and y = 2 for eachset: y = x++; x: __________________ y: __________________ y = ++x x: __________________ y:
__________________ int z = (++y –x–) x: __________________ y: __________________ z: __________________ int z = (–y + –x) x: __________________ y: __________________ z:__________________ c++
Expert Answer
Answer to 5. int x = 0, y = 3; x: __________________ y: __________________ x += 1; x: __________________ y -= 1; y: ______________…
OR