Question: 5. int x = 0, y = 3; x: __________________ y: __________________ x += 1; x: __________________ y -= 1; y: __________________ cout < <
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 at the start of each statement? x += 1; x = x + 1; ++x; x++; 9. What is the difference between the following if x is zero at the start of each statement? cout << (x += 1); cout << ++x ; cout << x++; 10. What are the values if x = 1 and y = 2 for each set: y = x++; x: __________________ y: __________________ y = ++x x: __________________ y:
__________________ int z = (++y x--) x: __________________ y: __________________ z: __________________ int z = (--y + --x) x: __________________ y: __________________ z:__________________ c++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
