Consider the following code fragment.
struct T{T* pt;};
T t;
t.pt = new T;
t.pt->pt = new T;
delete t.pt;
Which of the following are true?
Answers
Answered by
0
tex
bf/>
struct T{T* pt;};
T t;
t.pt = new T;
t.pt->pt = new T;
delete t.pt;
Similar questions