Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
5 views1 page

11 Array

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)
5 views1 page

11 Array

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

Practice Problems for Week-4

Problems related to Arrays. Make sure that you solve all of this prob-
lems.

1. Write a C program to read and print elements of array.


2. Write a C program to print all negative elements in an array.
3. Write a C program to find sum of all array elements.
4. Write a C program to find maximum and minimum element in an array.
5. Write a C program to find second largest element in an array.
6. Write a C program to count total number of even and odd elements in an
array.
7. Write a C program to count total number of negative elements in an array.
8. Write a C program to copy all elements from an array to another array (Do
not use any extra array).
9. Write a C program to insert an element in an array in a specific position.
10. Write a C program to delete an element from an array at specified position.

*** I will check this problems solution idea in your next class. Use
your time properly and try to solve all the problems.***

11. Write a C program to print all unique elements in the array.


12. Write a C program to count total number of duplicate elements in an array.
13. Write a C program to delete all duplicate elements from an array.
14. Write a C program to count frequency of each element in an array.
15. Write a C program to merge two array to third array.
16. Write a C program to find reverse of an array.
17. Write a C program to put even and odd elements of array in two separate
array.
18. Write a C program to search an element in an array.
19. Write a C program to sort array elements in ascending order.
20. Write a C program to sort array elements in descending order.
21. Write a C program to sort even and odd elements of array separately.
22. Write a C program to left rotate an array.
23. Write a C program to right rotate an array.
24. Write a C program to multiply two one dimensional array.
25. Write a C program to check whether two array is same or not.

Next Topic —-“Two Dimensional Array”


After solving this problems take a look to this topic.

You might also like