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. The function header needs the 2nd array dimension size specified as in prototype.

Computer Science & Information Technology

You might also like to view...

The Surface comes with two types of covers: the touch cover and the virtual cover

Indicate whether the statement is true or false

Computer Science & Information Technology

The default time set for a screen saver is ________ minutes

Fill in the blank(s) with correct word

Computer Science & Information Technology

Motor vehicles and a variety of electronic devices, such as card readers, use ____ operating systems.

A. embedded B. personal computer C. network D. mobile

Computer Science & Information Technology

Which of the following should the CSIRT include?

senior manager PR director firm's legal counsel All of these

Computer Science & Information Technology