ExamVeda
Login
Home
Exception Handling in C Sharp
?

What will be the output of the following C# code?
class number
{
    int length = 50;
    public int number1
    {
        get
        {
            return length;
        }
        set
        {
            length = value;
        }
    }
}
class Program
{
    public static void Main(string[] args)
    {
        number p = new number();
        p.number1 = p.number1 + 40;
        int k = p.number1 * 3 / 9;
        Console.WriteLine(k);
        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.