South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
acidrain - its cos 111U through unisa....
AND is the same as && in C++
OR is the same as || in C++
Always draw truth tables if you are getting confused. OR in computer science is not used in the exclusive sense as it sometimes is in English
To be accurate & and | is like AND, OR.
&& and || are short circuit evaluations but in essence provides the same functionality as AND, OR
I want it to exit the loop if num1 = 0 and num2 = 0....