What is displayed by the code fragment below if the memory for next immediately follows the memory for word?

```
char word[12], next[4] = "Joe";
word[0] = 'c';
word[1] = 'a';
word[2] = 't';
printf("%s\n", word);
```
a. a line with just the word "cat"
b. a line with the word "cat" followed by nine blanks
c. the word "cat" followed by whatever garbage is in word[3] through word[11] followed by Joe (unless there is a null character somewhere in word[3] through word[11])
d. an error message
e. the word "cat", the word "Joe", and the word "cat" again

C

Computer Science & Information Technology

You might also like to view...

Use the href element to create a link

Indicate whether the statement is true or false

Computer Science & Information Technology

A(n) ________ is an information system directly related to the care of patients

a. Electronic medical record b. Electronic health record c. Clinical information system d. None of the above

Computer Science & Information Technology