If a method is to be used to enter two values that will be used later in

Question:

If a method is to be used to enter two values that will be used later in the program, which of the following would be the most appropriate heading and call?

a. heading: void InputValues(out int val1, out int val2) call:

InputValues(out val1, out val2);

b. heading: void InputValues(int val1, int val2)

call: InputValues(val1, val2);

c. heading: void InputValues(ref int val1, ref int val2)

call: InputValues(ref val1, ref val2);

d. heading: int int InputValues( )

call: val1 = InputValues( );

val2 = InputValues( );

e. none of the above

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: