0
Can someone help me with this code ?
I copied it from a site and wanted to test it, but it's showing errors. Can someone please help me. I want the code to give me the maximum occurring character. https://code.sololearn.com/cBVBzMtJhUtn/?ref=app
3 ответов
+ 2
Looks like you forgot the second equals sign for the last comparison at line 26:
if (string1[i] == string1[j] && string1[i] != ' ' && string1[i] = '0')
should probably be:
if (string1[i] == string1[j] && string1[i] != ' ' && string1[i] == '0')
Anyway, I don't know what your code is supposed to do, so I cannot say if there are still logical errors, but changing that let run the code without showing error ^^
+ 1
Visph thank you so much.
+ 1
https://code.sololearn.com/cS287KzWZ4zx/?ref=app
Check that out