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...

What are some features that should be included on a Web site to attract new and repeat customers?

(a) Large and complex multimedia files. (b) A FAQ section and a navigational aids. (c) Paragraphs of text with dynamically changing font colors. (d) Large, high-resolution image files.

Computer Science & Information Technology

Which of the following galleries enables you to apply a soft glow, soft edges, shadows or a 3-D look to an object?

A) Font B) Background Styles C) Colors D) Effects

Computer Science & Information Technology

ACCDE is an acronym for ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

The two ways worksheet data can be consolidated include ________

A) consolidate by category or consolidate by type B) consolidate by type or consolidate by position C) consolidate by position or consolidate by group D) consolidate by category or consolidate by position

Computer Science & Information Technology