What is accomplished by the call to sprintf in the code fragment below?
```
char ans[20];
int num = 40;
sprintf(ans, "%d to %d", num, num + 10);
```
a. Nothing, the function name is misspelled.
b. It returns as its value the string "40 to 50".
c. It displays first the value of ans and then the string "40 to 50" (without the quote marks).
d. It aborts because the value of ans is garbage.
e. None of the above.
B
Computer Science & Information Technology
You might also like to view...
Series 1, Series 2, and Series 3 headings displayed in the worksheet appear in the ________ of the resulting chart
Fill in the blank(s) with correct word
Computer Science & Information Technology
What type of wiring should be used for a high-speed connection between two buildings?
A. coaxial cabling B. UTP cabling C. STP cabling D. fiber-optic cabling
Computer Science & Information Technology