Skip to content

Category Archives: C++ Programs

Write a program to find the length of a string using pointers . Examples: Input : given_string = "geeksforgeeks" Output : length of the string… Read More
Given a positive integer N. The task is to find 12 + 22 + 32 + ….. + N2. Examples: Input : N = 4… Read More
Prerequisite – fork() in C, sorting in fork() Problem statement – Write a program to search the key element in parent process and print the… Read More
Given two integers N and M. Consider two matrix ANXM, BNXM. Both matrix A and matrix B contains elements from 1 to N*M. Matrix A… Read More
Prerequisite: Command_line_argument. The problem is to find the largest integer among the three using command line arguments. Notes: Command-line arguments are given after the name… Read More
In this program, we will read and display details of n employees using Structure. Employee details like Name, age, phone number, salary will be printed.… Read More
In this article we’ll see how to render a triangle using OpenGL. A triangle is probably the simplest shapes you can draw in OpenGL after… Read More
There are 12 intermediate stations between two places A and B. Find the number of ways in which a train can be made to stop… Read More
We are provided with a 2D plane and a point (, ). We have to find a rectangle (, , , ) such that itencompasses the given point (, ).… Read More
Given n×m big rectangular area with unit squares and k times cut is allowed, the cut should be straight (horizontal or vertical) and should go… Read More
Problem – Givens Two number N and K, our task is to subtract a number K from N until number(N) is greater than zero, once… Read More
Write a program to create 4 processes: parent process and its child process which perform various tasks : Parent process count the frequency of a… Read More
There are two vector A and B and we have to find the dot product and cross product of two vector array. Dot product is… Read More
Prerequisite – Introduction of fork(), sorting algorithms Problem statement – Write a program to sort the numbers in parent process and print the unsorted numbers… Read More
Print the sum of series 13 + 23 + 33 + 43 + …….+ n3 till n-th term.Examples:   Input : n = 5 Output :… Read More

Start Your Coding Journey Now!