Examveda

What will be the output of the following C# code?
class Program
{
    public static void Main(string[] args)
    {
        int i, j;
        i = (j = 5) + 10;
        Console. WriteLine(i);
        Console. WriteLine(j);
        Console. ReadLine();
    }
}

A. 15, 15

B. 10, 5

C. 15, 5

D. 10, 15

Answer: Option C


Join The Discussion

Related Questions on Basic Syntax and Data Types in C Sharp