I have an if
statement in my code as follows:
if (key != a[0]) /* line to be executed */
When I run my program with key = 1
(type Integer) and a[0] = 1
(type Integer), I get a true
and the statement runs, i.e. 1 does not equal 1. Obviously, this is absurd.
I've done a lot of testing on this, and I can't find a value of key
that will give me a false
for key != a[0]
. a[0]
can't change, for the purposes of my program.
What's wrong?