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(
Yes the performance difference is:
The second statement evaluate every IF