17 C++ Programs and Code Examples on Arrays

C++ Programs and Code Examples on Arrays

This section contains C++ Programs and Code Examples on arrays with solutions, output and explanation. This collection of solved basic and difficult examples on C++ programming will be very useful for beginners in C++ programming language. It covers programs to perform various operations on single and multidimensional arrays and matrices.

List of C++ Programs on arrays covered here

The C++ programs covered in this section include:

1. Print one dimensional array
2. Calculate average & percentage
3. Calculate arithmetic mean
4. Calculate grade of student
5. Search element in array
6. Find largest element in array
7. Find smallest element in array
8. Reverse an array
9. Print two dimensional array
10. Print addition of two matrices
11. Print subtraction of two matrices
12. Multiplication of two matrices
13. Display the transpose of matrix
14. Major & minor diagonal elements
15. Sum of lower triangular elements of matrix
16. Sort in descending order
17. Merge two sorted arrays

For whom are these C++ Programs and Code Examples on Arrays useful?

All computer science freshers from BCA, BSc, BTech, MCA and all engineering students will find these solved C++ Program examples useful for their university exam, lab exam, practical, assignments, viva questions and campus placement. You can also use these programs to practice for your written test.