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

A selected control in a report displays a(n) ________ border

A) blue B) green C) orange D) purple

Computer Science & Information Technology

If an error occurs that prevents a transaction from completing, transaction-based logging allows the system to “________” the system to the state before the transaction began.

a) roll back b) unwind c) reset d) restore

Computer Science & Information Technology