I was told that the output can either be 11 or 10, but when I compile&run the code below, I only get 10 and I do not understand why the output is 10 instead 11.
I thought the code was simply searching for the integer 4, and hence should output true for both searches resulting in 11.
Can someone explain. Thanks in advance.