Array & String Practice Problems
1. Write a program to search for an element from an array input from the user.
2. Inserting an element into a position of an array. The element and the insertion point are
inputs from the user.
3. Deleting an element from an array.
4. Write a program to find out the maximum and minimum of an array of numbers.
5. Write a program in C to find maximum occurring character in a string.
6. Write a program to delete duplicate elements from an array.
7. Write a program to find the common characters from two arrays.
8. Take a string as input and print the characters in reverse order. Don’t use any built in string
function.
9. Write a program to merge two arrays removing the duplicate elements.
10. Write a program to count the frequencies of each character present in a text. (In addition
to alphabet letters, count also the space, tab and punctuation letters)
11. Write a program to count the number of letters and words within a text.
12. Write a program which will search for a substring within a string.
13. Write a program to count the lower case and upper case letters in a string.
14. An array consists of 50 integers in the range of 1 to 25, write a program that prints the
number of times each integer occurs in the array.
15. A, B, C are the arrays of integers of size a, b, a + b, Write a program to produce a third array
C containing all the elements of array A and B.