What is a smart pointer?

Answer Posted / nashiinformaticssolutions

A smart pointer is a C++ class that manages the lifetime of a dynamically allocated object.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to declare a pointer to an array of integers?

837


Which bit wise operator is suitable for putting on a particular bit in a number?

950


Define linked lists with the help of an example.

790


How to implement is-a and has-a class relationships?

781


Explain how the virtual base class is different from the conventional base classes of the opps.

908


Is c++ vector a linked list?

780


What is the main use of c++?

797


What are the differences between malloc() and calloc()?

870


Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02

1713


write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num

2410


Which programming language's unsatisfactory performance led to the discovery of c++?

1065


How do you find out if a linked-list has an end?

849


What is a lambda function c++?

791


How should a contructor handle a failure?

920


When should you use global variables?

908