+ 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);}
1 Antwort
+ 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).