I recently came accross some C++ code like the following:
if(test_1) if(test_2) { // Do stuff } else exit(0);
It is Defined in C. An else always gets paired with nearest if; therefore you should use proper braces to avoid ambiguity.
else
if