Posts by Ranjeet V

Author Biographical Info: Not available

Swapping two numbers using bitwise operator in C++

By Ranjeet V

Hello everyone, this tutorial is about swapping two numbers using the bitwise operator in C++. We will see how we can use bitwise XOR operator to swap two numbers. In this method, .... Read More

User Defined Literals in C++

By Ranjeet V

This tutorial will teach you about the User Defined Literals in C++. We can use UDLs in C++ to define our own literal values. Let’s have a detailed discussion over UDLs furth.... Read More

Assertion in C++

By Ranjeet V

In this tutorial, we are going to learn how we can use assertion in our C++ program. Assertions are statements that are assumed to be true. If not true, the compiler throws an erro.... Read More

Python getattr() method

By Ranjeet V

In this tutorial, we are going to learn about getattr() method in Python. We use this method to find out the value of a particular attribute of an object. The syntax and use of get.... Read More

Python divmod() function

By Ranjeet V

Hey guys, in this tutorial, we are going to learn how we can use Python divmod() function in our programs to find the quotient and remainder of a division operation. Go through thi.... Read More

Python hash() Function

By Ranjeet V

Hello everyone, in this tutorial we are going to see how the Python hash() function works and how we can use it in our program. Python hash() Function: Syntax and Properties The sy.... Read More

Cascading Member Functions in C++

By Ranjeet V

In this tutorial, we will learn cascading member functions in C++. Suppose there is a class Square with member functions area() and perimeter() that print area and perimeter of the.... Read More

How to create a singleton in Python using a metaclass

By Ranjeet V

In this tutorial, we will learn how to create a singleton in Python using a metaclass. What is a singleton?  Well, a singleton is a creational pattern that ensures that there can .... Read More

Related Posts