Wszystkie
Testy
Pojedyncze Pytanie
←
Powrót do arkusza
Pytanie 12 z 18
Pomiń i wróć
Poniższy program? #include
#include
using namespace std; class BaseClass { public: int *ptr; BaseClass(int i) { ptr = new int(i); } ~BaseClass() { delete ptr; delete ptr;} void Print() { cout << *ptr; } }; int main() { BaseClass o(10); o.Print(); }
A
Wypisze: 1
B
Nic nie wypisze
C
Wypisze: 10
D
Wygeneruje błąd po uruchomieniu
Podejdź do arkusza
Sprawdź odpowiedź