Q1. When should you use unique_ptr, shared_ptr or weak_ptr?
Raw `new` and `delete` are error-prone, so C++11 introduced smart pointers in `` that express ownership. - `std::unique_ptr`: exclusive ownership, cannot be copied, is mo...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (1 available).