📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!

  • google app store apple app store
  • âś–

      Question

      Consider the following C++ code: #include

      #include class Printer { public:     void print(int num) {         std::cout
      A Printing int: 123 Printing string: Hello Correct Answer Incorrect Answer
      B Printing string: Hello Printing int: 123 Correct Answer Incorrect Answer
      C Printing int: 123 Printing int: 0 Correct Answer Incorrect Answer
      D A compile-time error due to ambiguous call. Correct Answer Incorrect Answer
      E A runtime error. Correct Answer Incorrect Answer

      Solution

      The correct answer is A

      Practice Next
      ask-question