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.
- DisplayResult(2, 3);
- DisplayResult(10, a);
- DisplayResult(20);
- DisplayResult(value2:3, value1:5);
- DisplayResult(ref 2, ref 3);
- Int result = DisplayResult(2, 3);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
