Array Basic Question – Practice Kit CSE
Easy / Direct Question
1. Write a C program to read N elements into an array and display them.
2. Write a C program to find the sum of all elements in an array.
3. Write a C program to find the average of elements in an array.
4. Write a C program to find the largest element in an array.
5. Write a C program to find the smallest element in an array.
6. Write a C program to count even and odd numbers in an array.
7. Write a C program to count positive, negative, and zero elements in an
array.
8. Write a C program to search for an element in an array (Linear Search).
9. Write a C program to count how many times a given number occurs in an
array.
[Link] a C program to reverse the elements of an array.
[Link] a C program to copy elements from one array to another.
[Link] a C program to print elements at even index positions.
[Link] a C program to print elements at odd index positions.
[Link] a C program to replace all negative numbers with zero.
[Link] a C program to check whether an array is sorted in ascending order.
[Link] a C program to find the second largest element in an array.
[Link] a C program to calculate the sum of even elements only.
[Link] a C program to count how many elements are greater than a given
value.
[Link] a C program to rotate an array to the left by one position.
[Link] a C program to remove duplicate elements from an array (basic
logic).