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
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);
Step by Step Solution
3.50 Rating (163 Votes )
There are 3 Steps involved in it
autoptr new string autoptrprrigue The first exampl... View full answer
Get step-by-step solutions from verified subject matter experts
