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.

Back to Lab Problems
Structures and Pointers/Strings/Problem #8

Lab Problem Statement

Specifications & Problem DetailsIIT Kharagpur PDS Archive
Loading question...

Interactive C Compiler · Problem #8

WASM In-Browser

Runs directly on your machine · Zero remote server dependency

Compiler downloads on first Run (large, saved in your browser after that)
main.cCtrl + Enter to run
1
2
3
4
5
6
7
Input (stdin)given to scanf / cin
Output

Output appears here. Press Run to compile and execute.