What will be printed out as a result of the following code execution?
#include <stdio.h>

class A { };
class B : public A { };
class C : public B { };

void method(A a) { printf("a"); }
void method(B b) { printf("b"); }

int main() {
  C c;
  method(c);
  return 0;
}

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты