Classes and Objects on C# related Questions and Answers


Question :    Select the output for the following set of code :

  static void Main(string[] args)
  •   {
  •       int a = 10 , b = 20;
  •       Console.WriteLine("Result before swap is: "+ a +" "+b);
  • Answer :   2 - Result before swap is: 10 20 Result after swap is:20 10  

  • * Be the First to Post a Comment.

    Submit comment :


    Captcha Image
    Reload

    Ask Question

    Captcha Image
    Reload

    Note : Name and Email never shown.





    Subscribe


    Become a part of EducationForever. Subscribe to our FREE Newsletter