Structures and Pointers – Strings – Problem #8
IIT Kharagpur CS10001 / CS11001 Programming and Data Structures Lab Question Archive
Difficulty: medium
Problem Statement
Write a program which first reads character string S (of length at most 100). Assume that the string contains only upper case characters. The program should then find out the number of characters in the string S. It should then remove the vowels and store the new string in a new character array T. Size of T should be dynamically allocated. Print the string T and the number of characters it contains. For example, if string S is HELLOWORLD then the new string T is HLLWRLD of size 7.