ExamVeda
Login
Home
Miscellaneous in C Sharp
?

What will be the output of the following C# code snippet?
class A
{
    int i;
    int j;
    public A()
    {
        i = 1;
        j = 2;
    }
}
class Program
{
    static void Main(string[] args)
    {
       A obj1 = new A();
       Console.WriteLine(obj1.ToString());
       Console.ReadLine();
    }
}

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.