?What, if anything is required to fix the following code?
?
char val1, val2;
val1 = 10;
val2 = 25;
printSum(val1, val2);

void printSum(int x, int y)
{
   cout

A. ?val1 and val2 should be passed by reference
B. ?nothing is required, the code is correct
C. the x and y variables should be named val1 and val2
D. ?val1 and val2 are the wrong type

Answer: D

Computer Science & Information Technology

You might also like to view...

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

1. A common type of secondary storage device is the solid state drive. 2. External disk drives can be used to create backup copies of important data or to move data to another computer. 3. The use of USB drives has declined dramatically in recent years in favor of superior devices such as floppy disk drives. 4. When Auto Hide is turned on, a window is displayed only as a tab along one of the edges of the Visual Studio environment.

Computer Science & Information Technology

Starting with the 2-3 tree from question 5), remove the element 17. Sketch the tree.

What will be an ideal response?

Computer Science & Information Technology