(Spoiler Alert) Module 3's Final Question
"What is the output of this code? 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); }" I don't think I understand how this comes out to the answer it does. Please correct me if I'm wrong... I get that: "Test(out a)" will retrieve the value of "x * y", as that is the return statement. Which is 6 * 4 = 24, this will be assigned to "int z". However; I don't understand how "int a" gets a value. I'm not the best coder here, so please - if you can - break it down simplistically. Thankx in advance. (Obviously no quotations, but I figured that was necessary since I copy/pasted the problem. Also it makes it easier to read when explaining (I think)).