0
How I can eliminate integers and take the only character from the input line and reverse it in C.
If this is input 57o87l7l88e0H the output must be = hello
8 Réponses
+ 2
You can iterate through the string and check if a character is an integer with the isdigit() function of ctype.h
https://code.sololearn.com/cTg1hH3VjUMJ/?ref=app
+ 1
Ok thanks I will try it.
+ 1
Thank you buddy 👍
0
What about special characters%,&,/ how I can eliminate them?
0
As Shahzad said you can use isalpha instead of !isdigit
0
It depends on if you want to remove only digits or also symbols
0
Thank you both.it works