Examveda

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();
    }
}

A. 20 200

B. 40 200

C. 800 40

D. 40 800

Answer: Option C


This Question Belongs to C Sharp Programming >> Miscellaneous In C Sharp

Join The Discussion

Related Questions on Miscellaneous in C Sharp