Question
Asked by:
$1.00 programming in c help asap please
- From Computer-Science: General-CS
- Due on Dec. 03, 2008
- Asked on Dec 02, 2008 at 9:21:14PM
Want to take a stab at the bounty and post a tutorial? Need clarification? Join us now or log in! Read more on how this works.Q:
What is displayed by the code fragment below if the memory for next immediately follows the memory for word?
char word[12], next[4] =
word[0] = 'c';
word[1] = 'a';
word[2] = 't';
printf(, word);
a. a line with just the word
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 , the word , and the word again


