Write C Program Following Accepts Positive Integer N Keyboard Create Character Array Size Q37300748

Write a C++ program that does the following :

Accepts a positive integer ( n ) from the keyboard . Create ancharacter array of size n. Using a random number generator,populate the array with characters between 33 – 126. Create 7individual functions and perform the following

1. In the first function: display elements of the array. Displaythe first 20 elements If the size is > 20

2. In the second function : Using recursion, Search for a char (80 ) in the array using sequential search and at the end displaynumber of comparisons it makes.

3. In the third function : Sort the original

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.