

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the given 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 |
D. | 4 |
Answer» D. 4 | |