In Quiz 3 there is a question:

Question 2:

What would the following expression evaluate to? (((true || false) && true) || false)

Answer: True

Verify with cout << boolalpha << (((true || false) && true) || false);

Could someone explain the logic to me? I know the || means OR and the && means AND.

I just can’t figure out how it turns out to be true. Is it because of the pair of () the true is in?