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

C Programming 1D Array Assignment

The document outlines a C programming homework assignment consisting of five tasks. These tasks include calculating the sum and average of array elements, counting odd and even numbers, replacing negative numbers with zero, finding the second largest element, and counting the frequency of a specific target element in an array. Each task focuses on fundamental array manipulation techniques in C programming.

Uploaded by

Samrat Bhattarai
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)
32 views1 page

C Programming 1D Array Assignment

The document outlines a C programming homework assignment consisting of five tasks. These tasks include calculating the sum and average of array elements, counting odd and even numbers, replacing negative numbers with zero, finding the second largest element, and counting the frequency of a specific target element in an array. Each task focuses on fundamental array manipulation techniques in C programming.

Uploaded by

Samrat Bhattarai
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

C programming Homework

 Write a C program to calculate sum and average of all array


elements.
 Write a C program to count the number of odd and even
numbers in an array of 50 elements.
 Write a program that replaces all negative numbers in an
array with zero.
 Write a program to find the second largest element in an
integer array.
 Write a C program to count the frequency of any specific
target element in an array.

You might also like