So here we are going to study about how to check if a pointer is valid or not in C++. Invalid Pointers in C++ Let us discuss the types of invalid pointers. There are mainly 3 kinds.... Read More
This tutorial is about the differences between C and C++ programming languages. As we know, C++ is an extended version of C, and hence it has many similarities with its parent lang.... Read More
In this tutorial, we will learn about the errors in C++. There are many types of errors that can occur during the compilation or the execution of the program. Let’s understan.... Read More
In this article, we will learn how to use the remquo() math function in C++. This function is associated with the <cmath> library to find the quotient and remainder of a divi.... Read More
Have you ever seen a string and counted the number of characters in it just for fun? Pretty easy right? But what about a program? How can a C++ program do that? And that’s wh.... Read More
This tutorial will explain how to separate even and odd numbers in an array in C++ and transport them to two different and separate arrays. Illustration Suppose we enter an array t.... Read More
There are some reserved words in C++ that we cannot use as identifiers. These words have special meaning and perform a predetermined task. We call them keywords in C++. Keywords in.... Read More
Hey, so you probably came here wondering the same question: How to Add a character to a string in C++. The code is simple and is really easy to execute so understanding it wouldn.... Read More