Skip to content

Category Archives: C++ Programs

There are three ways to convert char* into string in C++. Using the “=” operator Using the string constructor Using the assign function 1. Using… Read More
Given an integer, the task is to find the largest prime number that can be made out of that. If we consider the integer as… Read More
Here, we will find out the unicode code point at a given index using a C++ program. Input:  arr = "geEKs" Output:  The Unicode Code… Read More
C++ allows Multithreading by using the ‘thread’ header file. The program acts as one thread but to increase program execution time/performance we can use threads… Read More
As we are given two paths of two files, we have to compare these two paths and check whether they are equal or greater or… Read More
Here we will build a C++ Program To Print Right Half Pyramid Pattern with the following 2 approaches: Using for loop  Using while loop Input:… Read More
Exceptions are run-time errors or abnormal conditions that a program may encounter during execution. Examples: Division by zero Access to an array out of its… Read More
Here, we will build a C++ program to print the left half of pyramid pattern using 2 approaches i.e. Using for loop Using while loop… Read More
Here, we will build a C++ program to print the hollow star pyramid diamond shape pattern that can be achieved with two approaches i.e. Using… Read More
Here, we will build a C++ program for double to string conversion using various methods i.e. Using to_string Using stringstream Using sprintf Using lexical_cast We… Read More
Here, we will build a C++ program to append a string in an existing file using 2 approaches i.e. Using ofstream Using fstream C++ programming… Read More
Unreachable code is a compile-time error in languages like C++, Java, and C or Unreachable code error occurs when the code can’t be compiled; but… Read More
Here, we will build C++ Program to Make a File Read-Only using 2 approaches i.e. Using ifstream Using fstream C++ programming language offers a library… Read More
In any programming language errors is common. If we miss any syntax like parenthesis or semicolon then we get syntax errors. Apart from this we… Read More
Here we will build a C++ Program To Print Inverted Pyramid using 3 different approaches: Half Inverted Using “*” Half Inverted Using Numbers Full Inverted… Read More

Start Your Coding Journey Now!