using System; using System.Reflection; namespace ConsoleApplication2 { class Program { unsafe static void Main(string[] args) { int[] x = asi(); int[] y = { 546, 565, 645, 5 }; fixed (int* ptr = &x[0]) { Console.WriteLine("{0:X}",(int)ptr); // Displays the memory address } Console.ReadKey(); } unsafe static int[] asi() { int[] uus = { 546, 565, 645, 5 }; fixed (int* ptr = &uus[0]) { Console.WriteLine("{0:X}", (int)ptr); // Displays the memory address } return uus; } } }