fork download
#include 

bool a()
{
	std::cout << "a\n";
	return false;
}

bool b()
{
	std::cout << "b\n";
	return true;
}

bool c()
{
	std::cout << "c\n";
	return true;
}

int main()
{
	if (a() || b() && c())
	{
		std::cout << "true\n";
	}
	
	if (a() || (b() && c()))
	{
		std::cout << "true\n";
	}
}
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
a
b
c
true
a
b
c
true