Program List - 1D Arrays
- Input and print the array
- Count Array elements using sizeof() operator.
- Count array elements without using sizeof() operator.
- Count even and odd numbers in an array
- Count positive and negative numbers in an array
- Copy one array to another
- Find the sum of all the elements of the array
- Find the average height of 10 students
- Sum of negative and positive integers of the array
- Smallest and largest integer from the array
- Find the nearest lesser and nearest greater number in an array
- Find second largest element in an array
- Find second smallest element in an array
- Find two largest elements in an array
- Find two smallest elements in an array
- Largest difference between two array elements.
- Replace all even elements by 0 and odd by 1 in an array
- Add and subtract two arrays.
- Reverse the array without using another array
- Reverse the array using another array
- Find the first repeated element in an array
- Find number of occurrences of an element in an array
- Find frequency of each element in an array
- Count total number of duplicate elements in an array
- Print all duplicate elements in array
- Print all unique elements in an array
- Insert an element at specific position in an array
- Insert an element at appropriate position in a sorted array
- Delete first occurrence of the number from the array
- Delete all the occurrences of a particular number from the array
- Delete integer from particular position from the array
- Delete duplicate elements from an array
- Delete prime numbers from an array
- Count total number of elements divisible by a specific number in an array
- Create a new array from a given array with the elements divisible by a specific number
- Search an element in the array
- Sort the array in ascending order
- Sort the array in descending order
- Calculate median of the array
- Rotate the elements of an array in left
- Rotate the elements of an array in right
- Swap adjacent elements of an array
- Merge two arrays
- Divide an array into two arrays, one containing odd integers and another containing even integers
- Positive and negative numbers in two separate arrays
- Split the array from particular position
- Arrange all even numbers at top and all odd numbers at bottom of an array
- Sort even and odd elements separately in an array