What will be the output of the following C# code snippet? [code] class UnsafeCode { unsafe static void Main() { int*

Giao Linh

New member
What will be the output of the following C# code snippet?
Code:
class UnsafeCode
{
    unsafe static void Main()
    {
            int* p;
            p = (int*)(65535);
            Console.WriteLine((uint)p);
            Console.ReadLine();
    }
}
A. compile time error
B. garbage value
C. program prints value at address
Code:
65535
D. program prints
Code:
65535
 

Tìm kiếm

Back
Top