Vidyalelo
C# Programming · Q79

Miscellaneous in C Sharp

Programming · C# Programming · question 79

Q79

What will be the output of the following C# code snippet? class Program static void Main(string[] args) float x = 3.14F; int y = (int)Math.Abs(x); Console.WriteLine(y); Console.ReadLine();

A.
Compile time error
B.
3.14
C.
3
Answer
D.
4

Answer: Option C

Solution

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