[go: up one dir, main page]

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

Module 5 (Arrays in C)

Uploaded by

Anand Vk
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 views1 page

Module 5 (Arrays in C)

Uploaded by

Anand Vk
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

Module 5 (Arrays)

Practice Programs on Arrays


1. WAP to accept n integers from user into an array and display them one by one.
2. WAP to accept n integers from user into an array and display the average of these
numbers.
3. WAP to accept n integers from user into an array and display the count of even and odd
numbers.
4. WAP to find the largest of n numbers taken from user.
5. WAP to find the second largest of n numbers taken from user.
6. WAP to find the largest of n numbers taken from user, using a function. The array of
numbers must be passed to the function. The largest number must be found in the
function and returned to the main function.
7. WAP to find the smallest of n numbers taken from user, using a function. The array of
numbers must be passed to the function. The smallest number must be found in the
function and returned to the main function.
8. WAP to find and display the reverse of an array using a function.
9. WAP to find and display the reverse of an array into the same array using a function.
10. WAP to find an element in an array and display the index of the element using a
function.
11. WAP to implement sequential search algorithm.
12. WAP to search a number within the array.
13. WAP to sort numbers in ascending order.
14. WAP to sort numbers in descending order.
15. WAP to delete all the occurrences of given number from an array, suppose
a={4,3,2,4,5,4} and given number is 4 then after deletion array is a ={3,2,5}
16. WAP to find reverse of an array.

You might also like