What is accomplished by this statement, assuming that ch1 is of type char, str1 references a 10-element char array, and n is of type int?

```
sscanf("a number 11", "%c%s%d", &ch1, str1, &n);
```
a. Nothing; the function name is misspelled.
b. The letter 'a' is stored in ch1 and the number 11 is stored in n, but the string " number " is lost because there is no ampersand on the reference to str1.
c. The statement returns the value 2, because it successfully stores values in ch1 and str1, but there is an input conversion error when it attempts to get a value for n.
d. The statement stores the letter 'a' in ch1, the string "number" in the array referenced by str1, and the integer 11 in n.
e. None of the above.


D

Computer Science & Information Technology

You might also like to view...

Explain why it is important to know the current state of the security system at all times.

What will be an ideal response?

Computer Science & Information Technology

WordArt ____ in the interior of a letter can consist of a solid color, texture, picture, or gradient.

A. fill B. style C. glow D. depth

Computer Science & Information Technology

When typing a URL, you have to type http:// in the Address bar of the application shown in the accompanying figure.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

What symbol is used to indicate a destructor function?

A. : B. :: C. ~ D. >>

Computer Science & Information Technology