

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the code snippet?
class UnsafeCode { unsafe static void Main() { int n = 10; int* p = &n; int** p1 = &p; int*** p2 = &p1; Console.WriteLine(*p * **p1 * ***p2); Console.ReadLine(); } } |
A. | Compile time error |
B. | Garbage value is printed |
C. | Program will print 1000 |
D. | Program will print 100 |
Answer» D. Program will print 100 | |