C Programming - Assignment 15

 Assignment 15

--------------------------


All the questions in this assignment are based on "Strings".

  1. Input a string and squeeze all the blank spaces in it. [ e.g. “code goes here” should be converted into “Codegoeshere” ]
  2. 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”
  3. 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 ]
  4. Input a string and print the frequency of each character. 
  5. Input a string and reverse it in place. [ e.g. “Code goes here” should be reversed as “edoC seog ereh”
  6. Input a string and extract a substring out of it. The starting and ending positions of the substring are entered by user.
  7. Input a string and remove the duplicate occurring of any character in it at contiguous places.
  8. 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