41.
What is the correct way to declare and initialize a jagged array with 2 rows in C#?

45.
What is the correct way to declare and initialize a multidimensional array with 3 rows and 4 columns in C#?

47.
What will be the output of the following C# code?
class math
{
    public int a,b;
    public math(int i,  int j)
    {
        a = i;
        b = j;
    }
    public  void sum(math m)
    {
        m.a *= 2;
        m.b += 2;
    }
}    
class Program
{
    static void Main(string[] args)
    {
        math t = new math(20,  10);
        t.sum(t);
        Console.WriteLine(t.a + "  " + t.b);   
        Console.ReadLine();
    }
}

Read More Section(Arrays and Strings in C Sharp)

Each Section contains maximum 100 MCQs question on Arrays and Strings in C Sharp. To get more questions visit other sections.