Vidyalelo
C# Programming · Q75

Miscellaneous in C Sharp

Programming · C# Programming · question 75

Q75

What will be the output of the following C# code snippet? class UnsafeCode unsafe static void Main() int* p ; int ch = 13*5; p = &(ch); Console.WriteLine(Convert.ToChar(*p)); if (*p == 'A') Console.WriteLine(Convert.ToBoolean(1)); else Console.WriteLine(Convert.ToBoolean(0)); Console.ReadLine();

A.
65 False
B.
65 1
C.
A True
Answer
D.
A 1

Answer: Option C

Solution

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