Remove duplicate strings

here after the loop finish at last a[pre+1]=’/0’ why it is used just to terminate the code because in char array we are using it when we initialise here we are not initialising why we are using it can you please explain me that

because we are not giving pre end point we are just increasing it and at last store the null in it and terminate form there right thats the thing in it

please reply me fast.

Hi @tarshid7
character arrays ko terminate ‘\0’ ke sath hota hai… thats why…

hn wahi to maine v bola k uska koi end point ni de rue to

pls share ur code where u are facing difficulty

if there is still any doubt do let me know… or shall i mark it as resolved??

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.