Suppose

```
void nPrint(char ch, int n)
{
while (n > 0)
{
cout << ch;
n--;
}
}
```
What is k after invoking nPrint('a', k)?

A. 0
B. 1
C. 2
D. 3


C. 2

Computer Science & Information Technology

You might also like to view...

The _____________ provides explicit policy guidance for a project, and establishes priorities that determine the application of resources for treatment.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A(n) ____ query is a type of action query that allows you to select records from one or more tables by setting criteria and then add those records to the end of another table.

A. update B. append C. modification D. addition

Computer Science & Information Technology

In a task box, each task in the list is associated with one or more ____.

A. properties B. projects C. actions D. objects

Computer Science & Information Technology

The COUNTA function will count the number of cells in a range that meet a specified condition

Indicate whether the statement is true or false.

Computer Science & Information Technology