Is there any option in VS C++ 2017 so that when it builds the following program both f()
and g()
are called?
#include <iostream>
using namespace std;
bool f()
{
cout << "f" "\n";
return true;
}
bool g()
{
cout << "g" "\n";
return false;
}
int main()
{
if (f() || g())
cout << "hello";
cin.ignore(1);
}