The code ive written shows error but i cant find NY LOGICAL FLAW. Kindly tell where i am wrong and give solution

??The code ive written shows error but i cant find NY LOGICAL FLAW. Kindly tell where i am wrong and give solution https://ide.codingblocks.com/s/670025

hi @akshat1409 buddy have u referred this code ? ive commented the code

I have reffered the code but it has used things like strings which have not been taught yet. My code works as a pseudo code idk where am i wrong please help me ehy is my code not working? the logic in my code is that i make a new array nc with spaces and add the difference in nc using the 2nd loop.

@akshat1409 u can do it with char array also and string is same as arrays