In C++, we can assign a reference using the conditional operator as such:
int main (int argc, char *argv[])
{
int i, j;
int &k = (false) ? i : j;
}
Is it possible to do this with if-else statements? I don't see how you can do it because you can't reassign a reference.