Skip to content

QnA Plus

Code, Create, Conquer: Insights, Algorithms, and Innovation

  • Home
  • Privacy Policy
  • Terms and Conditions
  • Contact
  • Contribute
  • About

Singleton Class in C++

Posted by By Srikanta October 26, 2019Posted inProgramming, C++No Comments
Singleton class ensures that there will be only one object of the class in lifetime of a program. Normally we can create as many objects as we want from a…
Read More

What is std::shared_ptr? Examples

Posted by By Srikanta October 10, 2019Posted inProgramming, C++No Comments
std::shared_ptr is a smart pointer that manages shared ownership of an object through pointer. Multiple std::shared_ptr (s) can hold the same object pointer. The actual object gets deleted when all…
Read More

C Program to Merge Two Sorted Arrays into one Sorted Array

Posted by By Srikanta September 27, 2019Posted inProgramming, CNo Comments
Here we'll write a C function to merge two sorted arrays into one. The merged array will also be sorted. Here we'll use two sorted integer arrays that are sorted…
Read More

Move std::unique_ptr to Pass to a Function or Assign to Another Variable

Posted by By Srikanta September 20, 2019Posted inProgramming, C++No Comments
The std::unique_ptr has unique ownership of the object it manages. That means that more than one std::unique_ptr object can not contain the managed object pointer. That’s why we can not…
Read More

Custom Deleter in std::unique_ptr

Posted by By Srikanta September 14, 2019Posted inProgramming, C++No Comments
In my previous article, we discussed how std::unique_ptr helps to avoid memory leak. By default it calls the default deleter (C++ delete operator) when the std::unique_ptr goes out of context.…
Read More

Posts pagination

Previous page 1 … 24 25 26 27 28 … 45 Next page
Categories
  • Programming 186
    • C 105
    • C++ 70
    • Python 7
  • Technology 30
  • Networking 6
  • Database 4
  • Others 8

    Popular Posts:

    • Implement Bubble Sort in C 120 views
    • C Program to Sleep in Milliseconds 97 views
    • How to install Ping or Ping6 using YUM 95 views
    • How to Implement Periodic and Single Shot Timers in Linux? 88 views
    • Change a Variable from inside a C Function 58 views
    • C Program to Check Whether Two String are Equal 49 views
    • How to Store SVN Password in Encrypted Form in Linux 46 views
    • C Program to Find the Longest Word in a String 46 views
    • How to Re-Indent C Code Using Notepad++ 44 views
    • How to do Asynchronous Operations using boost::asio? 41 views

    💬
    Chat with Us!

    Copyright © 2015 - 2025 QnA Plus. All rights reserved.
    Scroll to Top
    0
    1
    1
    0
    0
    0