Posts by Ranjeet V
Author Biographical Info: Not available
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
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
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
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
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
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
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
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