B

Babita • 7.70K Points
Tutor III

Q. What will be the output of the following C# code?

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
  • Correct Answer - Option(C)
  • Views: 166
  • Filed under category C#

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics