Aman Kumar

Aman Kumar

62 Articles Published

Articles by Aman Kumar

Page 7 of 7

Calculation in parent and child process using fork() in C++

Aman Kumar
Aman Kumar
Updated on 15-May-2025 2K+ Views

The fork() function creates a new process by duplicating the current one. It allows developers to perform parallel tasks and manage resources efficiently. When fork() is called, it returns a value. If the value is greater than 0, then it is in the parent process. Otherwise, it is in the child process. In this C++ article, we will learn how to use the fork() system call to perform calculations in parent and child processes.According to the problem statement, we will do calculations. So, in our parent process, we will find the sum of all even numbers in an array, and ...

Read More

C++ Program to Implement a Binary Search Tree using Linked Lists

Aman Kumar
Aman Kumar
Updated on 15-May-2025 3K+ Views

A linked list is a linear data structure in which we store a sequence of elements, where each element is called a node that contains data and a pointer (or link) to the next element in the sequence. In this C++ article, we will implement a Binary search tree using a linked list. Binary Search Tree A binary search tree is a hierarchical data structure that is constructed by nodes. Each node contains a value and its reference to the left and right child nodes. So the value in the left child node is less than the parent node, and ...

Read More
Showing 61–62 of 62 articles
« Prev 1 3 4 5 6 7 Next »
Advertisements