Hello. I am not sure if I do something wrong but I am getting crazy!
I have the following 'binary' search in an array (screenshot bellow):
If you see, I compare with the strcmp function two different strings. One is the "WC," and the other the "WV,". You can see the variable values on the 'Watch' window also.
The result instead of being anything other than 0 (zero), it is zero!!!!!!!!! (see the 'val' variable on the watch window)
It is like comparing single characters !!!
Could please someone let me know what I do wrong? (if I do so).