What needs to be changed for this code to compile?
class A{};
class B: A{};

void foo(A&a) {}

int main(int argc, char* argv[])
{
  B b;
  foo(b);
  return 0;
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes