Unit 3 String Excercise 4
Unit 3 String Excercise 4
UNIT III
String: Exercise:-4
This program takes a string input from the user and stores in the line
variable. Then, a for loop is used to iterate over characters of the
string.
If the character in a string is not an alphabet, it is removed from the
string and the position of the remaining characters are shifted to the
left by 1 position.
References
http://kirste.userpage.fu-berlin.de/chemnet/use/info/libc/libc_7.html
Let Us C by Yashavant Kanetkar : Authentic Guide to C PROGRAMMING Language 17th
Edition, BPB Publications
C in Depth by by S.K.Srivastava and Deepali Srivastava, BPB Publications