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

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Systems Analysis Design Questions!