Hello,
I was wondering whether the expected parenthesis hierarchy is respected when combining boolean conditions in a do-while loop.
To be concrete, consider this:
Then, the loop terminates when either A is false or (B||C||D) is false, and for this last one to be false, then B and C and D have to be false.Code:do { ... } while ( A && ( B || C || D ) )
Am I right? If so, this works in both C and C++?
Thanks for your help,
mc61
Thanks for your help,
mc61