What is wrong with this code?
```WriteGreeting(char greetings[ ][10]);
int main()
{
char greetings[3][10]= {“hello”, “howdy”, “hi”} ;
WriteGreeting(greetings);
return 0;
}
WriteGreeting(char greetings[ ][ ] )
{
for(int I = 0; I < 3; ++I)
cout<
A. The function prototype has a number in the 2nd array dimension brackets.
B. There are only 3 items in the array list.
C. The code is correct.
D. The function header needs the 2nd array dimension size specified as in prototype.
D
You might also like to view...
To ensure your bibliography accurately reflects the sources in your source list, do which of the following?
a. Inspect the document. b. Protect the document. c. Update the bibliography. d. Check the document for accessibility.
A direct ____________________ involves stopping the old system and starting the new one without any overlap.
Fill in the blank(s) with the appropriate word(s).