πŸ“Š C#
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) 15, 5

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
228
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Babita
Publisher
πŸ“ˆ
99%
Success Rate