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. Function scanf will store the entire string "vivaciously", even though there is insufficient space in str. The string will overflow str.
You might also like to view...
The StretchImage property is used to:
a) change the size of the image to fit the PictureBox b) change the size of the PictureBox to fit the image c) find a medium between the PictureBox and the image d) make the picture as large as possible while still maintaining quality
Select the term that is used to describe a trusted third-party agency that is responsible for issuing digital certificates:
A. Registration Authority B. Delegation Authority C. Certification Authority D. Participation Authority