Quote:
Originally posted by Faheria_GP2
if (j=4) {
iam***(6);
}
in c++ would always run, because the "=" sets j to 4 and returns true
|
Right, but not for the right reasons, 'j=4' returns whatever was assigned, so it returns a '4', not a 'TRUE', but I supposed it doesn't really matter, since any nonzero is considered true in a condition