ExamVeda
Login
Home
Basic Syntax and Data Types in C Sharp
?

What will be the output of the following C# code?
public static void Main(string[] args)
{
    int i = 546;
    object o = i;
    int n =(int) o;
    o = 70;
    System. Console. WriteLine("The value-type value = {0}", n);
    System. Console. WriteLine("The object-type value = {0}", o);
    Console. ReadLine();
}

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.