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 X = 6,Y = 2;
  •        X  *= X / Y;
  •        Console.WriteLine(X);
  •        Console
    1. 12
    2. 6
    3. 18
    4. Compile time error
    Answer :   3 - 18  

  • * 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