Nishu Kumari has Published 122 Articles

How to find the size of an int[] in C/C++?

Nishu Kumari

Nishu Kumari

Updated on 30-May-2025 18:05:34

8K+ Views

In C and C++, arrays can store multiple values of the same data type. This problem is about finding how many elements are present in a statically declared int[] array (not pointers or dynamically allocated arrays). We'll learn how to find the size of an int[] in both C ... Read More

C++ Program to Check if a Matrix is Invertible

Nishu Kumari

Nishu Kumari

Updated on 30-May-2025 18:04:19

395 Views

A matrix is invertible if it has an inverse. An inverse of a matrix exists only when its determinant is non-zero. If the determinant of a matrix is zero, the matrix is called singular and cannot be inverted. In this article, we'll write a C++ program to check if ... Read More

C++ Program to Perform LU Decomposition of any Matrix

Nishu Kumari

Nishu Kumari

Updated on 30-May-2025 18:02:25

5K+ Views

The LU decomposition of a matrix produces a matrix as a product of its lower triangular matrix and upper triangular matrix. In the lower triangular matrix (L), all values above the main diagonal are zero, and in the upper triangular matrix (U), all values below the main diagonal are ... Read More

C++ Program to Implement Fisher-Yates Algorithm for Array Shuffling

Nishu Kumari

Nishu Kumari

Updated on 30-May-2025 18:02:00

806 Views

Shuffling an array means rearranging its elements in a random order. The Fisher-Yates algorithm creates a shuffle where every possible order is equally likely to happen. In this article, we'll show you how to write a C++ program that uses Fisher-Yates algorithm to shuffle an array. Fisher-Yates Algorithm ... Read More

Convert an int to ASCII character in C/C++

Nishu Kumari

Nishu Kumari

Updated on 30-May-2025 18:01:36

36K+ Views

In C and C++, every character like 'A', 'b', '3', or '@' is stored as a number called its ASCII value. For example, 'A' is 65, and 'a' is 97. Given an integer like 97, we can convert it to its corresponding ASCII character which is 'a'. In this ... Read More

Determining how many digits there are in an integer in C++

Nishu Kumari

Nishu Kumari

Updated on 30-May-2025 18:01:08

32K+ Views

Here we will see how to check how many digits are there in an integer in C++. At first we will see the traditional rule, then a shorter method and finally another approach to find the digit count. For example, given a single integer (which can be positive, negative, ... Read More

C++ program to perform unique factorization of a Given Number

Nishu Kumari

Nishu Kumari

Updated on 29-May-2025 19:24:54

198 Views

Here is a C++ Program to get all the unique factorization of a given integer such that addition of a partition results an integer. In this program, a positive integer n is given, and we shall generate all possible unique ways to represent n as sum of positive integers. ... Read More

C++ Program to Find Minimum Value of any Algebraic Expression

Nishu Kumari

Nishu Kumari

Updated on 29-May-2025 19:24:33

298 Views

The algebraic expression is a combination of numbers, variables (x or y), and arithmetic operators like +, -, *, and /. In this article, we'll write a C++ program to find the minimum value of an expression in the form (x1 + x2 + x3 + . . . ... Read More

C++ Program to Find Maximum Value of any Algebraic Expression

Nishu Kumari

Nishu Kumari

Updated on 29-May-2025 19:24:10

296 Views

The algebraic expression is a combination of numbers, variables (x or y), and arithmetic operators like +, -, *, and /. In this article, we'll write a C++ program to find the maximum value of an expression in the form (x1 + x2 + x3 + . . ... Read More

Convert string to char array in C++

Nishu Kumari

Nishu Kumari

Updated on 28-May-2025 18:05:05

4K+ Views

A string in C++ is a group of characters written inside double quotes like "Hello" and characters are the single letters or symbols in a string. Converting a string to a char array means putting each character into a simple list (array) of characters. In this article, we will ... Read More

Advertisements