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.
You might also like to view...
Class methods are indicated by the special word public.
Answer the following statement true (T) or false (F)
A(n) ________ is a note or annotated text that can be added to a document that has been sent to you for review
Fill in the blank(s) with correct word
Calculating the correlation coefficient using the ________ function is useful to determine the type and strength of a relationship between two variables
A) CAUSATION B) COVARIANCE.S C) CORREL D) COVARIANCE.P
To add a sound clip to a slide, you use the Audio button in the Media group on the Design tab. _________________________
Answer the following statement true (T) or false (F)