Vidyalelo
C# Programming · Q103

Basic Syntax and Data Types in C Sharp

Programming · C# Programming · question 103

Q103

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

A.
123, 123
B.
456, 123
Answer
C.
456, 456
D.
123, 456

Answer: Option B

Solution

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