What is wrong with this function?

```
int Modulus( int x, int y )
{
int z;
z = x % y;
}

```

A. Modulus is a keyword in C++, the function can’t be named that.
B. There is no returned value.
C. There is nothing wrong with it.
D. The function doesn’t use the passed variables.


B. There is no returned value.

Computer Science & Information Technology

You might also like to view...

What will the following code display?

int number = 6; ++number; cout << number << endl; a. 6 b. 5 c. 7 d. 0

Computer Science & Information Technology

To experiment with a(n) ____ programming language, you need a program editor to write the code, and you need a language-specific compiler or an interpreter to run and test the programs you create.

A. batch-processing B. low-level C. full-featured D. assembly

Computer Science & Information Technology

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

1) Menus provide groups of related classes. 2) Menu items can display ComboBoxes, checkmarks and access shortcuts. 3) The ListBox control allows only single selection (like a RadioButton). 4) A ComboBox control typically has a drop-down list. 5) Deleting a parent node in a TreeView control deletes its child nodes.

Computer Science & Information Technology

An amortization table shows the interest rate for each payment

Indicate whether the statement is true or false

Computer Science & Information Technology