What will be the result of the following code execution?
 
class MyClass 
{ 
    static void Main() 
    { 
        int a = 1, b = 2; 
        Swap(a, b); 
        Console.WriteLine("a=" + a + ", b="+ b); 
        Console.ReadLine(); 
  } 

  private static void Swap(int a, int b) 
  { 
       int c = a; 
       a = b; 
       b = c; 
   } 
}
 
C#
C# Quiz
Learn C# Online

or Read more about C# Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback