Write a program which accepts a sentence from the user and alters it as follows:
Every space is replaced by *, case of all alphabets is reversed, digits are replaced by ?
Write a program that accepts names of n cities and write functions for the following:
a. Search for a city
b. Displays the longest string
c. Sorts the names
Write a program that accepts a sentence and splits the sentence into words. Sort each word and reconstruct the sentence.
Input â€“ this is a string Output â€“ hist is a ginrst
Write a menu driven program which performs the following operations on strings. Write a separate function for each option. Use pointers
i. Copy one string to another
ii. Concatenate two strings
iii.Count number of occurrences of a character in the string.
iv. Replace all occurrences of a character by another.