Paraphrasing, there are two possible questions being asked:
Given an array whose elements do not have any line feeds (or carriage returns, etc.):
- How do you print the entire array all on one line?
- How do you print each element of the array on a separate line?
Based on the wording I think the question is actually asking the first question though the author thinks he is asking the second one. |