Complete List of Array Programs to Master in C
This document contains a comprehensive list of array-based programs in C that are essential for
practice, interviews, and embedded systems development. Mastering these will help you understand
array manipulations, searching, sorting, and matrix operations, which are crucial for interviews and
real-world applications.
Work through these problems and strengthen your understanding of arrays in C!
### Level 1: Basics
1. Find the Sum of All Elements
2. Find the Maximum and Minimum Element
3. Count Even and Odd Numbers
4. Reverse an Array In-place
5. Copy One Array to Another
### Level 2: Basic Manipulation
6. Left Rotate an Array by One Position
7. Right Rotate an Array by One Position
8. Find the Frequency of Each Element
9. Print All Unique Elements in the Array
10. Check if an Array is Palindrome
### Level 3: Searching & Sorting
11. Linear Search in an Array
12. Sort an Array in Ascending Order (using Bubble Sort)
13. Find the Second Largest Element in an Array
14. Find the Position of a Given Element
15. Count the Number of Prime Elements in the Array
### Level 4: Advanced Manipulation
16. Move All Zeroes to the End
17. Segregate 0s and 1s in a Binary Array
18. Right Rotate an Array by K Positions
19. Find the Difference Between the Sum of Even and Odd Indexed Elements
20. Find Common Elements in Two Arrays
### Level 5: Matrix Operations (2D Array)
21. Add Two Matrices
22. Transpose of a Matrix
23. Find the Sum of Diagonal Elements
24. Print Matrix in Row-Major and Column-Major Order
25. Multiply Two Matrices
### Pro Interview Tip:
Mastering these problems will give you a solid foundation in arrays, pointers, memory management,
and other essential topics for embedded systems and C programming interviews.