Performance difference of “if if” vs “if else if”

前端 未结 7 1665
遥遥无期
遥遥无期 2020-12-05 17:25

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(         


        
7条回答
提交回复
热议问题