Skip to content

Tag Archives: C Array Programs

C Array Programs

Given an array of numbers, the task is to print all the even elements of the array. Let us understand it with few examples mentioned… Read More
Given an array arr of integers of the size of N, our task is to find the count of positive numbers and negative numbers in… Read More
What is the Determinant of a Matrix? The determinant of a Matrix is a special number that is defined only for square matrices (matrices that have… Read More
Prerequisites: Pointers in C++ Array in C++ A Pointer is a variable that stores the memory location or address of an object or variable. In… Read More
Given an array, the task is to find average of that array. Average is the sum of array elements divided by the number of elements.… Read More
Given a 2D array, sort each row of this array and print the result.Examples:  Input: 77 11 22 3 11 89 1 12 32 11… Read More
Transpose of a matrix is obtained by changing rows to columns and columns to rows. In other words, transpose of A[][] is obtained by changing… Read More
The below program adds two square matrices of size 4*4, we can change N for different dimensions.  Recommended: Please solve it on “PRACTICE” first, before… Read More
What is the Determinant of a Matrix? The determinant of a Matrix is a special number that is defined only for square matrices (matrices that have… Read More
Given an array (or string), the task is to reverse the array/string.Examples :   Input : arr[] = {1, 2, 3} Output : arr[] = {3,… Read More
Given an array of size N. The task is to find the maximum and the minimum element of the array using the minimum number of… Read More
Given a sorted array, the task is to remove the duplicate elements from the array.Examples: Input: arr[] = {2, 2, 2, 2, 2} Output: arr[]… Read More
To remove all the occurrences of an element in an array, we will use the following 2 approaches:  Using Methods Without using methods or With… Read More
Here, we will develop a C Program to Calculate the Average of All Elements of an Array: Input: arr[] = {1, 2, 3, 4, 5}… Read More
Here, we will see how to sort the 2D Array across rows using a C program: Input: 8 5 7 2 7 3 0 1… Read More

Start Your Coding Journey Now!