Question: need help removing punctuation from the string this is the C code that I have #include #include #include #include #include #include eint main() { char

 need help removing punctuation from the string this is the C

need help removing punctuation from the string this is the C code that I have

#include #include #include #include #include #include eint main() { char text[20], reverse text [20]; int i, n, t, c, length e, j 0; printf( "Please enter a string to check if it is a palindrome and press enter: "); fflush (stdout); fflush (stdin); scanf("%n]s", text); //Makes all lowercase for (int i - 0; text[i]; i++) f text[i] -tolower(text[i]); // Removes Spaces for (1-0; text [i] ++1) !- ') '\0 '; { if (text[i] l- text[j++]-text[i]; text[j]-'e'; //Remove punctuation //this will calculate the length of given text for (i; text[i] e'; i+) length++; //Reverse the original text and store into reverse_text for (i length - 1; 1 )s ; |--) { reverse_text[length - i - 1] - text[i],: //Check whether reverse_text is same to original text for (n 1, 1-0; 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!