Vidyalelo
C# Programming · Q53

Miscellaneous in C Sharp

Programming · C# Programming · question 53

Q53

What will be the output of the following C# code snippet? class Program static void Main(string[] args) int y = (int)Math.Max(4,2); int z = (int)Math.Pow(y, 2); Console.WriteLine(z); Console.ReadLine();

A.
4
B.
Compile time error
C.
16
Answer
D.
89

Answer: Option C

Solution

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