What will be printed out as a result of the following code execution:
 public static void Main() 
{ 
    Int32 v = 5;
    Object o = v; 
    v = 123; 
    Console.WriteLine(v + ", " + (Int32) o);
}
 
Explanation
Get an explanation when it's available:

@laor31692 thanks! fixed

2017 Dec 15, 1:43:35 PM

There is a typo: nt32 v = 5; Should be Int32 v = 5;

2017 Dec 15, 8:56:47 AM

@cliff thanks a lot! fixed

2017 Dec 6, 12:55:14 PM

public static void Main() { I // wrong line nt32 v = 5; Object o = v; v = 123; Console.WriteLine(v + ", " + (Int32) o); }

2017 Sep 16, 3:44:40 PM

C#
C# Quiz
Start Quiz

or Read more about C# Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback