Question: Considering the following method: private void DisplayResult(int value1, int value2) { MessageBox.Show((value1 * value2).ToString()); } Choose the wrong call(s) then explain why the call(s) is

Considering the following method:

private void DisplayResult(int value1, int value2)

{

MessageBox.Show((value1 * value2).ToString());

}

Choose the wrong call(s) then explain why the call(s) is wrong.

  1. DisplayResult(2, 3);

  1. DisplayResult(10, a);

  1. DisplayResult(20);

  1. DisplayResult(value2:3, value1:5);

  1. DisplayResult(ref 2, ref 3);

  1. Int result = DisplayResult(2, 3);

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 Databases Questions!