What is wrong with this code?

```
void PrinttoScreen( int dollars, int cents)
{
cout << “\n The dollars are << dollars;
cout << “\n The cents are << cents;
return OK
}

```

A. The return type is not void.
B. You can’t return an OK.
C. Both A & B
D. Nothing is wrong with it.


C. Both A & B

Computer Science & Information Technology

You might also like to view...

What is an f-stop?

What will be an ideal response?

Computer Science & Information Technology

After you create a menu bar, you can copy and paste it to the other main pages in your site to save time.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Static Web pages involve processing in addition to rendering the formatting ofHTML tags.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

What does the following print to the screen?

cout << “Hello Students/n”; a. Hello Students b. hello Students c. HELLO STUDENTS d. Hello Students/n

Computer Science & Information Technology