Link copied to clipboard. Share away!

Dismiss

Published on 12 Mar 2020

We will be discussing **Array programs in C, C++ and Java**. These are some of the most asked array questions in interviews and coding exams. Practicing these Array programs in C and other languages will help you understand various array concepts. **So get started with the below list of array programs now**.

While you practice these various array programs, you might get sometimes get stuck with a particular concept/problem and might want to know more about the concept. So in that case, **check out any of the below concept-based Array articles**.

- Declaration & Operations of Arrays in C/C++
- Declaration & Operations of Arrays in Java
- Declaration & Operations of Arrays in Python
- Advantages & disadvantages of Arrays

Basic array operations (Insert, delete and search an element)

- Sorting the elements of an array
- Sorting elements of an array by frequency
- Sort an array according to the order defined by another array

- Sum of elements in an array
- Sum of positive square elements in an array
- Sum of each row and column of a matrix
- Sum of elements in the zig-zag sequence of a matrix
- Sum of boundary elements of a matrix
- Minimum sum of absolute difference of given array
- Sum of all odd frequency elements in an array

- Print the distinct elements of an array
- Print the non-repeating elements of an array
- Print the repeating elements in an array
- Print the array by removing duplicate elements
- Print the missing elements of a range
- Matrix printing in a spiral form
- Print the maximum element in a row
- Print the maximum element in a column

- Array rotation Left and right
- Block swap algorithm for array rotation
- Juggling algorithm for array rotation
- Circular rotation of an array by K positions
- Rotate the matrix by K times
- Matrix rotation by 90 degrees clockwise and anticlockwise

- Check if two arrays are the same or not
- Finding the array type
- Reversing an array
- Longest palindrome in an array
- Remove duplicate elements in an array
- Minimum scalar product of two vectors
- Maximum scalar product of two vectors
- Can the numbers of an array be made equal
- Triplets with a given sum
- Arrays are disjoint or not
- Array is a subset of another array or not
- Replace each element of the array by its rank in the array
- Equilibrium index of an array
- Longest subarray having an average greater than or equal to k
- Rearrange positive and negative numbers in an array

- Transpose of a matrix
- Upper triangular matrix or not
- Lower triangular matrix or not
- Maximum size of square submatrix with all 1's in a binary matrix

Practice more C programming questions

If you have any feedback about this
article and want to improve this, please write to **enquiry@faceprep.in**

×