#include <iostream>
int main()
{
    const char *foo = "abc";
    const char *bar = "xyz";
    
    bool b = false;
    const char* result1 = b ? foo : bar;
    const char* result2 = !b ? bar : foo;
    
    std::cout << "result1: " << result1 << "\nresult2: " << result2 << '\n';
}