Array practice problems and Solutions

In This Article, We will solve Array-related problems.



2. Write a program to print the average marks obtained by a student in five tests.

3. Write a program to print a string using an array.

4. Write a program to input a string through the keyboard and print the same.

5. Write a program to find the sum of negative and positive integers.

6. Write a program to find the sum of N numbers in an array

7. Write a program to find the smallest element in the array

8. Write a program to find the largest element in the array

9. Write a program to find the 2nd smallest element in the array

10. Write a program to find the 2nd largest element in the array

11. Write a program to Print the Average of Numbers in array at an even position  

12. Write a program to Print the Average of Numbers in array at an odd position  

13. Write a program to print array elements in reverse order.

14. Write a program to print array elements in reverse order using the swapping method.

15. Write a program to separate even and odd numbers in an array.

16. Write a program to print the frequency of all numbers in an array.

17. Write a program to print the most occurring elements.

18. Write a program to separate even and odd position numbers in an array.

19. Write a program to separate positive and negative numbers in an array.

20. Write a program to print lists of occurring elements in an array.

21. Write a program to insert an element into an array at a specified position 

22. Write a program to delete a specified integer in an array

23. Write a program to search a specified integer in an array

24. Write a program to find the array type 

25. Write a program to sort the elements of an array 

26. Write a program to count distinct elements of an array

27. Write a program to remove duplicate elements in an array

28. Write a program to check if two arrays are the same or not.

29. Write a program to check if two arrays are disjoint or not.

30. Write a program to check if one array is a subset of another array or not.






















Matrix or 2D Array-related problems.






























Post a Comment

1 Comments

Please do not Enter any spam link in the comment box