I have a string called in
, a string that has the value of "Hello, World!". I also have an integer called i
that has the value -1
. When I ask C++ to print out if i
is less than the length of in
(in.length()
), it says false
, but when I try -1 < 15
, it says true. Why does it say false?
I feel like this is extremely basic arithmetic.