Consider the following function definition:

```
void tripler(int& n)
{ n = 3*n;}
```
a) Nothing is wrong with either bit of code.
b) There are not enough initializers for the array.
c) There is an illegal index in the loop.
d) There are too many initializers in for the array.
e) The call to the function requires different syntax.


d) is the error. c) is also an error unless you use j< 5 rather than j<= 5

Computer Science & Information Technology

You might also like to view...

The correct code for replacing the selected text in txtBox with the contents of the Clipboard is:

(A) txtBox.Copy() (B) txtBox.Cut() (C) txtBox.Text = Clipboard (D) txtBox.Paste()

Computer Science & Information Technology

When working with frames, it is useful to refer to a group of frames as a frame ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

which answer correctly calls the WildCard function?

Given the function prototype: double WildCard(char f[]); A. float z; char face[10]; z = WildCard(face); B. double z; char face[10]; z = WildCard(face); C. double z; string face; face = WildCard(z); D. int z; int face[10]; face = WildCard(z);

Computer Science & Information Technology

In order to use a WBS in Project 2010, you must organize tasks into ____________________ tasks.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology