WRITE IN C++ FORMAT Write a void function named removeLetters that accepts a cha
ID: 3638288 • Letter: W
Question
WRITE IN C++ FORMAT
Write a void function named removeLetters that accepts a character pointer as a
parameter. The parameter is a C string. This function must remove all of the
upper and lower case letters from the string. The resulting string must be a
valid C string.
The function can declare no more than one local variable in addition to the
parameter. If declared, the additional variable must only be a pointer type.
The function may not use any square brackets. The function may not use any
library functions.
Explanation / Answer
here ya go #include using namespace std; void removeLetters(char* cptr) { while(1) { //if we have an upper or lower case letter, change it to a ' ' blank character if((((int)*cptr >= 65) && ((int)*cptr = 97) && ((int)*cptrRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.