why s[i] !=“1” condition showing error
Error in string class
Because s[i] is a character and you are comparing it with a string.
Anything in double quotes is string and in single quote is a character.
Do this > s[i]=‘1’.
oh my bad, got it thanks!
why s[i] !=“1” condition showing error
Because s[i] is a character and you are comparing it with a string.
Anything in double quotes is string and in single quote is a character.
Do this > s[i]=‘1’.
oh my bad, got it thanks!