Select all lines that will compile successfully:
 
int i = "s";                              //1
object o = 5;                            //2 
object o2 = "123";                        //3 
object o3 = delegate() { return 0; }   //4
Delegate d = delegate() { return 0; } //5
 
Explanation
Get an explanation when it's available:

4 and 5 lines will compile successfully.

2024 Jan 27, 1:01:05 PM

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes