cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Do While Loop Does not work with ||?
Do While Loop Does not work with ||?
Mar 10, 2012 at 5:52am UTC
Anmol444
(638)
I just noticed that || does not work in do while loops. But && acts as ||. I dont get why. Could someone explain.
Mar 10, 2012 at 6:08am UTC
shacktar
(1187)
Those operators work as expected within the terminating condition of a do while loop. Likely it's your condition that's causing the problem. Please post the code and especially the loop that's causing the issue.
Topic archived. No new replies allowed.