1.

What will be the output of given code snippet?
 class UnsafeCode { unsafe static void Main() { int[] nums = new int[10]; fixed (int* p = &nums[0], p2 = nums) { if (p == p2) Console.WriteLine("p and p2 point to same address."); Console.ReadLine(); } } } 

A. Run time error
B. Compile time error
C. P and p2 point to the same address
D. Only b
Answer» D. Only b


Discussion

No Comment Found