Posts by Karandeep Singh

Author Biographical Info: Not available

Difference between find() and index() in Python

By Karandeep Singh

Hey, guys today we are going to learn the difference between find() and index() in Python. Both these string methods are very similar but have few differences. Before starting with.... Read More

Using bits/stdc++.h header in C++

By Karandeep Singh

Hey, guys today we are going to learn about <bits/stdc++.h> header file in C++. Before starting with <bits/stdc++.h>header file , lets discuss header files in brief. .... Read More

Print a string N number of times in C++

By Karandeep Singh

Hey, guys today we are going to learn how to print a string N number of times in C++. We can print a string N number of times with the help of iteration statements also known as lo.... Read More

Difference between inline and macro in C++

By Karandeep Singh

Hey, guys today we are going to learn about the difference between inline and macros in C++. Before starting with the difference lets discuss macro and inline first. Macro in C++ M.... Read More

log2() function in C++ with examples

By Karandeep Singh

Hey, guys today we are going to learn about log2() function in C++. It is a mathematical function which returns the value of logarithmic base 2 value of the argument passed. Header.... Read More

Structure Inheritance in C++ with Example

By Karandeep Singh

Hey, guys today we are going to learn about inheritance in C++. Inheritance is a crucial characteristic of Object-Oriented Programming (OOPs).It shows the relation between two or m.... Read More

Getters and Setters in C++

By Karandeep Singh

Hey, guys today we are going to learn about Getters and Setters in C++. Getters are Setters are mostly used with classes. They are used to access and set the values of private memb.... Read More

Unnamed and inline namespaces in C++

By Karandeep Singh

Hey, guys today we are going to learn about unnamed(anonymous) and inline namespaces in C++. Before starting with the unnamed and inline namespaces, I would like to briefly discuss.... Read More