Q112
What will be the output of the following C# 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
AnswerD.
Only p2
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board