+ 1

I can't get this question and have no points

static int Test(out int x, int y 4){x=6; return x*y;} static void Main string args []{int a; int z= Test(out a);Console.WriteLine(a+z);}

10th Jun 2017, 12:29 PM
Rando Cardrissian
1 Answer
+ 1
The value of a become the value of x in the Test method, which is 6. The value of z is the return of Test, x*y and x=6 and y=4 so z=24. The result should be 30 (24+6=z+a).
10th Jun 2017, 12:49 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar