+ 1

Hello, everybody, I have written prity long code and I think it is correct.

https://code.sololearn.com/cHd9Nb17hOQ0/?ref=app But trouble is I do not know how to remove special chars and extra whitespaces from string arrays str3[], which represent the addresses. string str1[] are names of phone directory string str2[] are phone numbers string str3[] are addresses.

2nd Oct 2022, 6:50 AM
TeaserCode
3 odpowiedzi
+ 3
if character is not --alphabet Or number Or space --" remove it or don't copy into new one.. you can use isalnum() function to determine if character is alpha-numeric or not. For space, you can compare directly and use it if next character is not also space. Hope it helps...
2nd Oct 2022, 8:42 AM
Jayakrishna 🇮🇳
+ 1
Hello again, I do what you said, but it print empty string arrays.
2nd Oct 2022, 4:05 PM
TeaserCode
+ 1
Finally it is done!
2nd Oct 2022, 4:36 PM
TeaserCode