Programs 1-18
Basic Array Operations
- 01C Program to read and print elements of array
- 02C Program to print all elements of an array in reverse order
- 03C Program to print sum of array elements
- 04C Program to find the average of all elements in an array
- 05C Program to find the largest element in an array
- 06C Program to find the smallest element in an array
- 07C Program to print maximum and minimum element in array
- 08C Program to count the number of elements in an array
- 09C Program to count even and odd numbers in an array
- 10C Program to print only even numbers from an array
- 11C Program to print only odd numbers from an array
- 12C Program to count positive, negative and zero numbers in array
- 13C Program to find the sum of all even numbers in an array
- 14C Program to find the sum of all odd numbers in an array
- 15C program to search an element in an array
- 16C Program to find the index of a given number in an array
- 17C Program to copy all array elements from one array to another
- 18C Program to swap the first and last elements of an array
Programs 19-30
Basic Array Manipulation
- 19C program to find reverse of an array
- 20C program to merge two arrays into a third array
- 21C Program to insert an element in array
- 22C Program to delete an element from array
- 23C Program to count occurrences of a given number in an array
- 24C Program to print the frequency of each element in an array
- 25C Program to find all unique elements in an array
- 26C Program to count duplicate elements in an array
- 27C Program to print duplicate elements in an array
- 28C Program to delete duplicate elements from an array
- 29C Program to find the first duplicate element in an array
- 30C Program to find the first non-repeating element in an array
Programs 31-36
Minimum, Maximum & Comparison Problems
- 31C Program to print the second largest element in an array
- 32C Program to find the second smallest element in an array
- 33C Program to find the third largest element without sorting
- 34C Program to find the difference between the largest and smallest elements
- 35C Program to find the most frequent element in an array
- 36C Program to find the least frequent element in an array
Programs 37-40
Two Array Problems
Programs 41-42
Sorting
Programs 43-47
Array Movement & Rotation
Programs 48-53
Array Problem Solving
- 48C Program to check whether an array is a palindrome
- 49C Program to find the missing number from a sequence
- 50C Program to find multiple missing numbers from a sequence
- 51C Program to find all pairs with a given target sum
- 52C Program to find all triplets with a given target sum
- 53C Program to find the longest consecutive sequence of equal numbers
Programs 54-58