C++ pointer to class

Viewed 61788

Can anyone tell me what the difference is between:

Display *disp = new Display();

and

Display *disp;
disp = new Display();

and

Display* disp = new Display();

and

Display* disp(new Display());
6 Answers
Related