(Correct the Code Errors) Identify and correct the error(s) in each of the following:

```
) while (y > 0) {
cout << y << endl;
++y;
}
```

The variable y should be decremented (i.e., --y;), not incremented (++y;).

Computer Science & Information Technology

You might also like to view...

As you point to each action group and action, Access displays a ________ that explains the general purpose of the object

A) ScreenTip B) menu C) comment D) shortcut

Computer Science & Information Technology

Which of the following kinds of pointers allows you to relocate an object?

A. reselection B. relocation C. proximity D. move

Computer Science & Information Technology