in this code the x varible takes the address of the d varible in memeory is that correct
class MainProgram { public static void Main() { int x; Number(out x); Console.WriteLine(x); Console.ReadKey(); } public static void Number(out int d) { d = 10; d += 2; Console.WriteLine(d); } } }
d
x
return
Quote:The out-keyword describes parameters whose actual variable locations are copied onto the stack of the called method
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)