Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

What is the output of the following program? template <class U, class T> void foo(U&, T&) { std::cout << "first"; } template <class T> void foo(int&, const T&) { std::cout << "second"; } int main() { int a; double g = 2.; foo(a, g); return 0; }

compile error: ambiguous call
first
second
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon