0% found this document useful (0 votes)
6 views

Array Questions

Uploaded by

jaseel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Array Questions

Uploaded by

jaseel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1. Write a c program to sort an array and print the count of unique elements in the array.

2. Write a c program to delete multiples of 5.


3. Write a program to delete lowest element in an array.
4. Write a C program to delete 2 elements after the occurrence of multiple of five, and calculate the average
of non-multiple numbers of five in the array.
5. Write a C program to skip 2 elements after multiples of 5 and display the array.
6. Write a program in c to delete prime numbers in array.
7. Write a program in C to move all zeros in the last without sorting & counting zeros.
8. C program to find the total sum of array elements & then remove prime numbers when sum > 100, else
remove non-prime numbers.
9. C program to find the sum of array elements, and delete odd numbers if the sum is >100, else delete even
numbers.
10. Print prime numbers in the array, and make it zero.
11. Find the average of negative numbers and move to the beginning w/o sorting.
12. Skip 2 numbers after prime number occurrence.
13. Reverse an array and delete multiple of 3.
14. Remove odd and find the sum of existing values.
15. Write a program to change prime numbers to 1 and odd numbers to 0.
16. Delete unique elements and find the frequency.
17. Find the greatest value.
18. Write a program to find sum of two numbers. If sum is > 100 delete even numbers in the array. If sum <
100 delete odd numbers in the array.
19. Remove odd numbers and find the sum of remaining values.
20. Replace all the multiples of 10 by 5 in an array.
21. Find the average of unique numbers.
22. Find the average of negative elements in an array and arrange all negative elements in the beginning of
the array without sorting.

You might also like