What are smart pointers?

Answers were Sorted based on User's Feedback



What are smart pointers?..

Answer / nashiinformaticssolutions

• Smart pointers like std::unique_ptr, std::shared_ptr, and std::weak_ptr manage dynamic memory automatically, preventing memory leaks.

Is This Answer Correct ?    0 Yes 0 No

What are smart pointers?..

Answer / glibwaresoftsolutions

• Smart pointers like std::unique_ptr, std::shared_ptr, and std::weak_ptr manage dynamic memory automatically, preventing memory leaks.

Is This Answer Correct ?    0 Yes 0 No

What are smart pointers?..

Answer / hr@tgksolutions.com

• Smart pointers like std::unique_ptr, std::shared_ptr, and std::weak_ptr manage dynamic memory automatically, preventing memory leaks.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What does the linker do?

0 Answers  


Is C++ case sensitive a) False b) Depends on implementation c) True

0 Answers  


Is there any function that can skip certain number of characters present in the input stream?

0 Answers  


What is #include cmath?

0 Answers  


Why c++ is faster than java?

0 Answers  


What is the best book for c++ beginners?

0 Answers  


What is c++ hash?

0 Answers  


What do you mean by const correctness?

0 Answers  


What is lvalue?

0 Answers  


Why do C++ compilers need name mangling?

3 Answers   Lucent,


Differentiate between structure and class in c++.

0 Answers  


What are the differences between new and malloc?

0 Answers  


Categories