What will be the output of the following C# code snippet?
class UnsafeCode
{
unsafe static void Main()
{
int m = 10;
int *mptr = &m;
int **ptr = &mptr;
int n = 20;
int *nptr = &n;
int **prt = &nptr;
m = **prt + *nptr;
n = *mptr* **prt;
Console.WriteLine(n + " " + m);
Console.ReadLine();
}
}
class UnsafeCode
{
unsafe static void Main()
{
int m = 10;
int *mptr = &m;
int **ptr = &mptr;
int n = 20;
int *nptr = &n;
int **prt = &nptr;
m = **prt + *nptr;
n = *mptr* **prt;
Console.WriteLine(n + " " + m);
Console.ReadLine();
}
}A. 20 200
B. 40 200
C. 800 40
D. 40 800
Answer: Option C

Join The Discussion