Nishu Kumari has Published 83 Articles

C++ Program to convert Octal Number to Decimal and vice-versa

Nishu Kumari

Nishu Kumari

Updated on 20-May-2025 20:09:25

571 Views

In a computer system, the octal number is expressed in the octal numeral system while the decimal number is in the decimal numeral system. The octal number is in base 8 while the decimal number is in base 10. In this article, we will write a C++ program to ... Read More

C++ Program to Check if it is a Sparse Matrix

Nishu Kumari

Nishu Kumari

Updated on 16-May-2025 19:14:48

726 Views

What is Sparse Matrix?A sparse matrix is a matrix in which the majority of the elements are zero. In other words, if more than half of the elements in a matrix are 0, it is called a sparse matrix. In this article, we will show you how to write ... Read More

C++ Program to Store and Display Information Using Structure

Nishu Kumari

Nishu Kumari

Updated on 16-May-2025 19:14:01

8K+ Views

A structure is a collection of items of different data types. It is very useful in creating complex data structures with different data type records. A structure is defined with the struct keyword. In this article, we will store and display information of an employee using a structure. An ... Read More

C++ Program to Perform Preorder Recursive Traversal of a Given Binary Tree

Nishu Kumari

Nishu Kumari

Updated on 16-May-2025 19:13:22

8K+ Views

In this article, we'll show you how to write a C++ program to perform a preorder recursive traversal of a binary tree. A binary tree is a tree where each node has zero, one, or two children. Even an empty tree is called a valid binary tree. Traversal means ... Read More

C++ Program to Perform Inorder Recursive Traversal of a Given Binary Tree

Nishu Kumari

Nishu Kumari

Updated on 16-May-2025 19:12:45

15K+ Views

Tree traversal is a form of graph traversal. It involves checking or printing each node in the tree exactly once. The inorder traversal of a binary tree involves visiting each of the nodes in the tree in the order (Left, Root, Right). An example of Inorder traversal of a ... Read More

C++ Program to Perform Postorder Recursive Traversal of a Given Binary Tree

Nishu Kumari

Nishu Kumari

Updated on 16-May-2025 18:37:48

5K+ Views

A binary tree is a tree data structure where each node has zero, one, or two children. Even an empty tree is called a valid binary tree. Our goal is to write a C++ program to perform postorder recursive traversal on a given binary tree. Traversal ... Read More

C++ Program to Perform Matrix Multiplication

Nishu Kumari

Nishu Kumari

Updated on 16-May-2025 18:37:23

9K+ Views

A matrix is a rectangular array of numbers arranged in rows and columns. To multiply two matrices, We multiply each row of the first matrix by each column of the second matrix and add the results to get a new matrix. An example of the multiplication of two matrices ... Read More

C++ Program to Find Transpose of a Matrix

Nishu Kumari

Nishu Kumari

Updated on 16-May-2025 18:36:52

14K+ Views

A matrix is a rectangular array of numbers arranged in rows and columns. To find the transpose of a matrix, we arrange the rows of the original matrix as columns in a new matrix. Similarly, the columns can also be arranged as rows. An example of the transpose of ... Read More

C++ Program to Copy Strings

Nishu Kumari

Nishu Kumari

Updated on 15-May-2025 19:46:46

4K+ Views

In this article, we'll show how to write a C++ program to copy strings. A string in C++ is a sequence of characters, such as letters, numbers, symbols, or anything enclosed in double quotes (e.g., "Hello"). Copying a string means transferring all characters from one string to another or ... Read More

C++ Program to Find Factorial of a Number using Iteration

Nishu Kumari

Nishu Kumari

Updated on 15-May-2025 19:46:02

3K+ Views

In this article, we'll show you how to write a C++ program to find the factorial of a number using an iterative approach. The factorial of a number is the result of multiplying all the positive integers from 1 to that number. It is written as n! and is ... Read More

Advertisements