How can i remove adjacent repeating words in a sentence using C language without 2D array | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i remove adjacent repeating words in a sentence using C language without 2D array

I want the full code plz!

22nd Mar 2017, 5:25 AM
Abhishek Arora
Abhishek Arora - avatar
1 Answer
+ 3
You can do a shift You save the indexes of the beginning and the end of the word, then you search the beginning of the next different word and you shift the end of the string to the left inside of the array
5th Jun 2019, 7:21 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar