MCQs > IT & Programming > C# > What is the expected output? static void Main() { object o = -10.3f; int i = (int)o; Console.WriteLine(i); }

C# MCQs

What is the expected output? static void Main() { object o = -10.3f; int i = (int)o; Console.WriteLine(i); }

Answer

Correct Answer: Runtime exception (InvalidCastException)

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it