Skip to content
QnA Plus

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

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

Programming

  • Home
  • Programming
  • Page 25

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 inC, ProgrammingNo 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

C Program to Find the Sum of all Digits of a Number

Posted by By Srikanta September 2, 2019Posted inProgramming, C2 Comments
Here we'll see how to write a C program to find the summation of all digits in a number. For example, the sum of the digits of 43652 is 20…
Read More

Posts pagination

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

    Popular Posts:

    • C Program to Get a Digit at Any Position of a Number 68 views
    • Implement Bubble Sort in C 45 views
    • How to install Ping or Ping6 using YUM 43 views
    • How to Implement Periodic and Single Shot Timers in Linux? 38 views
    • Count Occurrences of a Substring in a String in C 37 views
    • Change a Variable from inside a C Function 32 views
    • Understanding the override Keyword in C++ 31 views
    • Method Chaining in C++ 28 views
    • Stock Analysis on Google Sheet 27 views
    • What is Endianness? Difference between Big Endian and Little Endian 24 views

    [chatbot_plugin]

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