Yearly Archives

Type of ‘this’ pointer in C++

In C++, this pointer is passed as a hidden argument to all non-static member function calls. The type of...

Type of ‘this’ pointer in C++

In C++, this pointer is passed as a hidden argument to all non-static member function calls. The type of...

‘this’ pointer in C++

To understand ‘this’ pointer, it is important to know how objects look at functions and data members of a...

‘this’ pointer in C++

To understand ‘this’ pointer, it is important to know how objects look at functions and data members of a...

Introduction of Smart Pointers in C++ and It’s Types

Things to learn in this article: Importance of pointer in C/C++. Problems with normal pointer. Why smart pointers introduce....

Introduction of Smart Pointers in C++ and It’s Types

Things to learn in this article: Importance of pointer in C/C++. Problems with normal pointer. Why smart pointers introduce....

When do we pass arguments by reference or pointer?

In C++, variables are passed by reference due to following reasons: 1) To modify local variables of the caller...

When do we pass arguments by reference or pointer?

In C++, variables are passed by reference due to following reasons: 1) To modify local variables of the caller...

Can references refer to invalid location in C++?

In C++, Reference variables are safer than pointers because reference variables must be initialized and they cannot be changed...

Can references refer to invalid location in C++?

In C++, Reference variables are safer than pointers because reference variables must be initialized and they cannot be changed...

Opaque Pointer

What is an opaque pointer? Opaque as the name suggests is something we can’t see through. e.g. wood is...

Opaque Pointer

What is an opaque pointer? Opaque as the name suggests is something we can’t see through. e.g. wood is...

Pointers in C and C++

Pointers store address of variables or a memory location. // General syntax datatype *var_name; // An example pointer "ptr"...

Pointers in C and C++

Pointers store address of variables or a memory location. // General syntax datatype *var_name; // An example pointer "ptr"...

C++ string class and its applications

In C++ we can store string by one of the two ways – C style strings string class (discussed...

C++ string class and its applications

In C++ we can store string by one of the two ways – C style strings string class (discussed...

Arrays in C/C++

An array in C/C++ or be it in any programming language is a collection of similar data items stored...

Arrays in C/C++

An array in C/C++ or be it in any programming language is a collection of similar data items stored...