What does the following function do?

```
int fun
(string a,
int k)
{
char blank = ' ';
bool looking = true;

while (k >= 0 && looking)
if (a[k] == blank)
--k;
else
looking = false;
if (looking)
return -1;
else
return k;
}
```
a. Finds the subscript of the first nonblank character in array a.
b.Finds the subscript of the last nonblank character in array a. c. Counts the number of nonblank characters in array a.
d. Finds the subscript of the first blank in array a. e. Finds the subscript of the last blank in array a.

b.Finds the subscript of the last nonblank character in array a. c. Counts the number of nonblank characters in array a.

Computer Science & Information Technology

You might also like to view...

Which tab on the Ribbon would you use to change the margins in a Word document?

What will be an ideal response?

Computer Science & Information Technology

You are the coach of a nine-person baseball team. How many different batting orders are possible?

A. 5,040 B. 40,320 C. 362,880 D. 362,900 E. 45

Computer Science & Information Technology