C Programming - Assignment 15
Assignment 15
--------------------------
All the questions in this assignment are based on "Strings".
- Input a string and squeeze all the blank spaces in it. [ e.g. “code goes here” should be converted into “Codegoeshere” ]
- Input a string and then print which character has occurred maximum time in the string. [ e.g. “Code goes here” the output should be “e has occurred maximum that is 4 times”
- Input a string and decode encode it. [ You can use the encoding algorithm is as each character is to be converted into its 4th equivalent character ]
- Input a string and print the frequency of each character.
- Input a string and reverse it in place. [ e.g. “Code goes here” should be reversed as “edoC seog ereh”
- Input a string and extract a substring out of it. The starting and ending positions of the substring are entered by user.
- Input a string and remove the duplicate occurring of any character in it at contiguous places.
- Input a multi word string and then reverse the order of the words in the given string. Example: string = "I Love CodeWithAbby" , output = CodewithAbby Love I
Comments
Post a Comment