SINGLE DIMENSION ARRAYS

43 programming challenges to help you master the fundamentals of C++ using OBJECT ORIENTED PROGRAMMING.

1

Program to copy all elements of one array into another array

2

Program to find the frequency of each element in the array

3

Program to left rotate the elements of an array

4

Program to print the duplicate elements of an array

5

Program to print the elements of an array

6

Program to print the elements of an array in reverse order

7

Program to print the elements of an array present on even position

8

Program to print the elements of an array present on odd position

9

Program to print the largest element in an array

10

Program to print the smallest element in an array

11

Program to print the number of elements present in an array

12

Program to print the sum of all the items of the array

13

Program to right rotate the elements of an array

14

Program to sort the elements of an array in ascending order

15

Program to sort the elements of an array in descending order

16

Program to Find 3rd Largest Number in an array

17

Program to Find 2nd Largest Number in an array

18

Program to Find Largest Number in an array

19

C++ Program Find 2nd Smallest Number in an array

20

Program to Find Smallest Number in an array

21

Program to Remove Duplicate Element in an array

22

Program to Print Odd and Even Numbers from an array

23

Write a C++ program to swap the first and last elements of an array and create a new array

24

Write a C++ program to count the number of even and odd elements in a given array

25

Write a C++ program to sum values of an array

26

Write a C++ program to find the index of an array element

27

Write a C++ program to calculate the average value of array elements

28

Write a C++ program to test if an array contains a specific value

29

Write a C++ program to find the maximum and minimum value of an array

30

Write a C++ program to insert an element (specific position) into an array

31

Write a C++ program to reverse an array of integer values

32

Write a C++ program to find the common elements between two arrays

33

Write a C++ program to find the duplicate values of an array of integer values

34

Write a C++ program to find second largest number from the array

35

Write a C++ program to find second lowest number from the array

36

Write a C++ program to find the number of even and odd integers in a given array of integers

37

Write a C++ program to get the difference between the largest and smallest values in an array of integers

38

Write a C++ program to segregate all 0s on left side and all 1s on right side of a given array of 0s and 1s

39

Write a C++ program to cyclically rotate a given array clockwise by one

40

Write a C++ program to print all unique element in an array

41

Write a C++ Program to Sort the Array in an Ascending Order

42

Write a C++ Program to Sort the Array in an Descending Order

43

Write a C++ Program to Search Key Elements in an Array