Error in execution

Sir please explain why error is coming while executing the program,even though my code is correct!here is the screenshot

hi @anisha2001singhal “0” is a string, ‘0’ is a character, know the difference! You are comparing a character with a string that is why error is arising.

1 Like

@anisha2001singhal please share your code using cb ide for further debugging

1 Like

Oh ok mam!but mam i have written the code in same way that is shown in video during tutorial there also character is compared with a string then how i have to correct it,please tell mam:))

@anisha2001singhal like i said please share your code using cb ide so i can make corrections in it

Could u please tell me how i can share the link of ide?i have saved it even though i could not share it!Kindly help

hi @anisha2001singhal
after you save the code, copy the url and simply paste the url and hit reply


here is it kindly check

hi @anisha2001singhal can you share the question as well? or a brief explanation as to what you are trying to do here

@anisha2001singhal change the part shown in screenshot like this.

1 Like


i m still not getting correct output its not showing count in others one while its showing the count in spaces and also please tell and is same as && then why there was error coming?

@anisha2001singhal there are some minor mistakes, corrected them here: https://ide.codingblocks.com/s/314437

1 Like

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.

1 Like