What does the following C function do?
```
int
fun(const char *string)
{
char blank = ' ';
int k;
int looking = 1;
k = strlen(string);
while (k >= 0 && looking) {
if (string[k] == blank)
--k;
else
looking = 0;
}
if (looking)
return (-1);
else
return (k);
}
```
a. It finds the subscript of the first nonblank character in string.
b. It finds the subscript of the last nonblank character in string.
c. It counts the nonblank characters in string.
d. It finds the subscript of the first blank in string.
e. It finds the subscript of the last blank in string.
B
You might also like to view...
____________ have the following properties: 1. a = b (mod n) if n| (a - b) 2. a = b (mod n) implies b = a (mod n) 3. a = b (mod n) and b = c (mod n) imply a = c (mod n)
Fill in the blank(s) with the appropriate word(s).
By default, the caption appears directly above the table when creating a table caption.
Answer the following statement true (T) or false (F)
What is the difference between multifactor authentication and single-factor authentication?
What will be an ideal response?
A quick display of an image sequence is called ____________________.
Fill in the blank(s) with the appropriate word(s).