I was just thinking is there any performance difference between the 2 statements in C/C++:
Case 1:
if (p==0) do_this(); else if (p==1) do_that(
In the former case conditions after the one matched are not evaluated.