Difference between auto and auto* when storing a pointer

Viewed 4571

Is there a functional difference between the following? Is there any reason to prefer one over the other?

auto p = new C();

and

auto* p = new C();
1 Answers
Related