Vidyalelo
C# Programming · Q59

Basic Syntax and Data Types in C Sharp

Programming · C# Programming · question 59

Q59

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();

A.
546, 0
B.
546, 546
C.
546, 70
Answer
D.
70, 546

Answer: Option C

Solution

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