Luckygold6
Programmer
What order do they work in. For example, if I entered the following code, how will it execute?
if (arArray[iC][1] == 0 || arArray[1][iB] == 0 && iC < 5 && iB < 5)
When it reads the code, does it read it as:
1. arArray[iC][1] == 0 or arArray[1][iB] == 0 must hold true and iC < 5 and iC < 5 both must hold true.
or as:
2. arArray[iC][1] == 0 or arArray[1][iB] == 0 and iC < 5 and iB < 5 must hold true.
I can't seem to figure out which logic path the computer would take. Can someone please help clarify this.
Thanks in advance.
if (arArray[iC][1] == 0 || arArray[1][iB] == 0 && iC < 5 && iB < 5)
When it reads the code, does it read it as:
1. arArray[iC][1] == 0 or arArray[1][iB] == 0 must hold true and iC < 5 and iC < 5 both must hold true.
or as:
2. arArray[iC][1] == 0 or arArray[1][iB] == 0 and iC < 5 and iB < 5 must hold true.
I can't seem to figure out which logic path the computer would take. Can someone please help clarify this.
Thanks in advance.