Vidyalelo
C# Programming · Q55

Miscellaneous in C Sharp

Programming · C# Programming · question 55

Q55

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
Answer
D.
40 800

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board