Hi everyone,
So I'm learning C++ at the moment and I'm trying to work things out with pointers. Could anybody explain the following scenario:
bool testFalse = false; //testFalse = false
bool *thisIsFalse = &testFalse; //value of address of thisIsFalse shows that the address contains false
bool shouldBeFalse = &thisIsFalse; //shouldBeFalse = true is what I get here
shouldBeFalse (as the name implies) should be false, but it certainly doesn't turn out that way. Could someone explain why it ends up as true and how to make it so it takes on the proper value? Thanks!