Menu

Insert Appropriate Value X Y Rewrite Following Pre Increment Post Increment Operators 1 In Q43840333

Insert the appropriate value of x and y. Then rewrite thefollowing as pre-increment or post-increment operators:

1.

int x =0;                                                                                            x: __________________

cout <<x;                                                                                         x: __________________

x = x +1;                                                                                            x: __________________

rewrite:__________________________________________________________

2.

int x = 3, y =0;                                                                                x: __________________
                                                                                                             y: __________________

x = x +1;                                                                                            x: __________________

y =x;                                                                                                  y: __________________

rewrite:__________________________________________________________

3.

int x = 3, y =0;                                                                                x: __________________
                                                                                                             y: __________________

y =x;                                                                                                  y: __________________

x = x +1;                                                                                            x: __________________

rewrite:__________________________________________________________

4.

int x = 0;                                                                                           x: __________________

int y = x;                                                                                           y: __________________

x -= 1;                                                                                                x: __________________

rewrite:__________________________________________________________

Expert Answer


Answer to Insert the appropriate value of x and y. Then rewrite the following as pre-increment or post-increment operators: 1. int…

OR