We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: between

Differences between a pointer and reference

Differences Between Pointer and Reference in C++ are as follows, 1.) Reference is a kind of const pointer that de-reference itself automatically. Yes, its similar to const pointer therefore once you have attached a reference to a variable or object then you cannot make it to point to someone else. Advertisements Now if you try to …

Differences between a pointer and referenceRead More

Difference between delete & []delete and rise of Memory Leaks

In this article we will discuss the difference between delete &  []delete and how mixing new [] with delete can give rise to Memory Leaks. To allocate memory dynamically on heap we use new[] operator i.e. Advertisements class Sample; Sample * ptrArr = new Sample[5]; Here new[] performs following operations internally, In first step, it …

Difference between delete & []delete and rise of Memory LeaksRead More

Difference between lvalue and rvalue in C++

In this article we will discuss the differences between lvalue and rvalue in C++. In C, definition if lvalue and rvalue was somewhat simple, anything i.e. left of assignment operator is lvalue and  right ofassignment operator is rvalue. But in C++ this definition has changed and become more interesting. Every Expression in C++ is either rvalue or …

Difference between lvalue and rvalue in C++Read More

Difference between Vector and List in C++

linkedlist

In this article we will discuss the differences between std::vector and std::list in C++. Both vector and list are sequential containers of C++ Standard Template Library. But there are many differences between them because of their internal implementation i.e. Advertisements List stores elements at non contiguous memory location i.e. it internally uses a doubly linked …

Difference between Vector and List in C++Read More

Calculate Difference between 2 Dates in C++ using Boost Library

In this article we will discuss how to calculate difference between two dates and how to iterate over a date range using C++ Boost Date Time Library. date_duration Boost Date Time Library provides a duration type to represent the duration between two dates i.e. Advertisements boost::gregorian::date_duration With this date_duration object we can get the duration …

Calculate Difference between 2 Dates in C++ using Boost LibraryRead More

Python: Get difference between two dates in years

In this article, we will discuss how to get the difference between two dates in years in python. In python, the dateutil module provides a class relativedelta, which represents an interval of time. The relativedelta class has following attributes which tells about the duration, Year Month Day Hours Minutes Seconds Microseconds So, to calculate the …

Python: Get difference between two dates in yearsRead More

Cart

Your Cart is Empty

Back To Shop