What is wrong with this code?

```
int ShowMeTheMoney()
{
int cents, dollars;
cout << “\n Enter dollars and cents”;
cin >> dollars , cents;
return (dollars,cents);
}

```

A. You can’t have a comma in the cin statement.
B. You can’t have a comma in the return statement.
C. Both A & B.
D. There is nothing wrong with it.


C. Both A & B.

Computer Science & Information Technology

You might also like to view...

If a number is formatted with the D3 formatter, it means that:

a) the number has to have at least 3 digits even if they are zero b) the number has a dollar sign and is at least 3 digits long c) the number has a three-dimensional context d) an error occurs

Computer Science & Information Technology

Explain the following programming statement in terms of objects and the services they provide.

``` System.out.println ("I gotta be me!"); ```

Computer Science & Information Technology

In Microsoft Excel 2016, the Hide & Unhide option can be accessed by clicking the _____ on the Home tab.

A. ?Insert button B. ?Clear button C. ?Format button D. ?Edit button

Computer Science & Information Technology

A(n) ________ is a value in a worksheet cell that is represented in a chart by a data marker

Fill in the blank(s) with correct word

Computer Science & Information Technology