What code fragments will not cause a compilation error when inserted into string (1) independently of each other?
struct A {
  // (1)
};
Explanation
(a) - does not fit, because the constructor cannot be static.
(b) - the constructor cannot be constant
(c) - the method cannot be both static and constant
(d) - virtual functions cannot be static
(e) - is compiled, A::Foo() is a virtual constant method

Следи за CodeGalaxy

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

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