.Net > Random > Beginner Next/Skip this question

What would be the output of following code snippet?

using System;
using System.Collections;

class Program
{
    static void Main()
    {
        ArrayList list = new ArrayList();
        list.Add("string");

        ArrayList list2 = new ArrayList();
        list2.Add(2);

        list.AddRange(list2)  ;

        foreach (var element in list)
        {
            Console.Write(element);
        }
        Console.ReadLine();
    }
}
Answers :
Explaination :
social share share on facebook share on twitter share on google plus share on linkedin
Add Comments :

Login

Register

Next Question