Quizzes
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
pointer type
:
Content language: Русский
English
Что будет выведено на экран? #include <iostream> using namespace std; struct A {}; struct B: A {}; struct C: B {}; int main() { try { throw new C(); } catch(void *) { cout<<0; } catch(A*) { cout<<1; } catch(B*) { cout<<2; } catch(...) { cout<<3; } }
pointer type
Что будет выведено в stdout при выполнении следующего кода? #include <iostream> struct A { A() { std::cout << "A"; } ~A() { std::cout << "~A"; } }; int main() { A *a = (A *) operator new(sizeof *a); delete a; }
pointer type
← Prev
1
2
Next →
Sign Up Now
or
Subscribe for future quizzes