The document contains a list of programming tasks that require writing C programs for various operations on arrays. Tasks include printing negative elements, finding sums, maximum and minimum values, counting even and odd numbers, and handling duplicates. It also involves inserting, deleting elements, and working with prime numbers in arrays.
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views
array questions
The document contains a list of programming tasks that require writing C programs for various operations on arrays. Tasks include printing negative elements, finding sums, maximum and minimum values, counting even and odd numbers, and handling duplicates. It also involves inserting, deleting elements, and working with prime numbers in arrays.
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1
Array question
1. Write a C program to print all negative elements in an array.
2. Write a C program to find sum of all array elements. 3. Write a C program to find maximum and minimum element in an array . 4. Write a C program to find second largest element in an array. 5. Write a C program to count total number of even and odd elements in an array. 6. Write a C program to count total number of negative elements in an array . 7. Write a C program to copy all elements from an array to another array. 8. Write a C program to insert an element in an array. 9. Write a C program to delete an element in an array assuming that the number exists only once 10.Write a C program to delete an element from an array at specified position . 11.Write a C program to count frequency of each element in an array. 12.Write a C program to print all unique elements in the array. 13.Write a C program to print only duplicate elements in the array. 14.Write a C program to count total number of duplicate elements in an array . 15.Write a C program to delete all duplicate elements from an array . 16.Write a C program to count and print the sum of prime elements in an array.