Which of the following are not examples of correct usage (conceptually or syntactically) of auto_ptr? (Assume that

Question:

Which of the following are not examples of correct usage (conceptually or syntactically) of auto_ptr? (Assume that the needed header files have been included.)
auto_ptr pia(new int[20]);
auto_ptr (new string);
int rigue = 7;
auto_ptrpr(&rigue);
auto_ptr dbl (new double);

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

C++ Primer Plus

ISBN: 9780321776402

6th Edition

Authors: Stephen Prata

Question Posted: