Ambiguous if and else branches: Is the behaviour defined?

前端 未结 5 1969
既然无缘
既然无缘 2021-01-18 11:33

I recently came accross some C++ code like the following:

if(test_1)
    if(test_2)
    {
         // Do stuff
    }
    else
       exit(0);
5条回答
提交回复
热议问题