Tag: array


Introduction to Arrays

An array is a collection of items stored at contiguous memory locations. The array is used to store multiple data …

Reverse elements of an array

Write a program to input elements in an array and find reverse of an array. So in this post, we …

C Program to read and print elements of array

C Program to read and print elements of an array using loops and recursion

C Program to print sum of array elements

C Program to print the sum of array elements using loop and recursion.

C Program to print maximum and minimum element in array

C Program to print maximum and minimum element in an array

C Program to print second largest element in array

C Program to print the second largest element in an array

C Program to print count of even and odd numbers in array

C Program to print the count of even and odd numbers in an array.

C Program to count positive, negative and zero numbers in array

C Program to count positive, negative and zero numbers in an array

C Program to copy all array elements from one array to another

C Program to copy all array elements from one array to another

C Program to insert an element in array

C Program to insert an element in an array at a given position.

C Program to delete an element from array

C Program to delete an element from an array by given index or by given value. How to remove an …

C Program to print frequency of each element in array

C Program to print the frequency of each element in an array without using an extra array. How to print …

Pair with given sum in an array

In this problem, we have to find a pair of number in an unsorted array which adds up to the …

Second largest element in an array

Given an array write a program to find the second largest element in an array by using the efficient possible …

Left rotation of an array

Given an array write a program to rotate the array of size "n" to left/anticlockwise direction by "k" elements …