0% found this document useful (0 votes)
5 views2 pages

C Array Programming Practice Questions

The document is a practice kit containing basic C programming questions focused on array manipulation. It includes tasks such as reading elements, calculating sums and averages, finding largest and smallest elements, counting even and odd numbers, searching for elements, and more. Each question is designed to enhance understanding and skills in handling arrays in C programming.
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 views2 pages

C Array Programming Practice Questions

The document is a practice kit containing basic C programming questions focused on array manipulation. It includes tasks such as reading elements, calculating sums and averages, finding largest and smallest elements, counting even and odd numbers, searching for elements, and more. Each question is designed to enhance understanding and skills in handling arrays in C programming.
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

Array Basic Question – Practice Kit CSE

Easy / Direct Question


1. Write a C program to read N elements into an array and display them.

2. Write a C program to find the sum of all elements in an array.

3. Write a C program to find the average of elements in an array.

4. Write a C program to find the largest element in an array.

5. Write a C program to find the smallest element in an array.

6. Write a C program to count even and odd numbers in an array.

7. Write a C program to count positive, negative, and zero elements in an

array.

8. Write a C program to search for an element in an array (Linear Search).

9. Write a C program to count how many times a given number occurs in an

array.

[Link] a C program to reverse the elements of an array.

[Link] a C program to copy elements from one array to another.

[Link] a C program to print elements at even index positions.

[Link] a C program to print elements at odd index positions.

[Link] a C program to replace all negative numbers with zero.

[Link] a C program to check whether an array is sorted in ascending order.

[Link] a C program to find the second largest element in an array.

[Link] a C program to calculate the sum of even elements only.


[Link] a C program to count how many elements are greater than a given

value.

[Link] a C program to rotate an array to the left by one position.

[Link] a C program to remove duplicate elements from an array (basic

logic).

You might also like