Consider the following code fragment.
```
char str[10];
scanf("%s", str);
```
What will happen if scanf encounters the string "vivaciously" when scanning a value for str?
a. Since there is not enough room in str for the whole string, only "vivacious" will be stored in str.
b. Function scanf will store the entire string "vivaciously", even though there is insufficient space in str. The string will overflow str.
c. The program will abort with an error message.
d. Only "vivacious" will be scanned and stored, leaving "ly" on the input line.
e. None of the above.
B
You might also like to view...
Which of the following is NOT true regarding complex update queries?
A) If you update data from one table to another and use compatible data types instead of matching data types, Access converts the data types of the fields in the destination table. B) First begin with a select query that identifies the records to be updated and then change the query to an update query and click Run. C) The data types for both the source and destination fields must match and be compatible. D) Some of the data in the destination fields may be truncated.
When modifying a chart, you change the fill color of a column by:
A) clicking the Fill button in the Chart Setup group on the Layout tab. B) clicking the Fill button in the Modify Chart group on the Layout tab. C) right-clicking on the column, selecting Format Data Series from the shortcut menu, and clicking on Fill. D) double-clicking on the column, selecting Format Data Series from the shortcut menu, and clicking on Fill.
If you want to apply a conditional format that would format different cells with different colors, where one color is assigned to the lowest group of values, another color is assigned to the highest group of values, and gradient colors are assigned to other values, you would use ________
A) Icon Sets B) Top/Bottom Rules C) Color Scales D) Data Bars
The do loop is a variation of the ____ loop.
A. if-then-else B. while C. case D. sequence