

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the given code?
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» D. 40 800 | |