Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function named revString that accepts one character pointer as a parameter and returns no value. The parameter must be a C-string. This function
Write a function named revString that accepts one character pointer as a parameter and returns no value. The parameter must be a C-string. This function must remove all of the digit character letters from the string. The revised string argument must be a valid C-string. Your function must not use any square brackets and must not use the strlen or strcpy library functions. The signature for revString should be: void revString( char * msg )
int main() { char msg[100] = "Happy 2021!"; revString(msg); cout << msg << endl; // prints: Happy ! }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started