What is the difference between IF-ELSE and SWITCH?

后端 未结 6 2297
南方客
南方客 2020-11-29 06:43

Can someone please explain this to me?

6条回答
  •  孤城傲影
    2020-11-29 07:11

    i think that main difference is that in if-else blocks we can test conditions.but does not go exactly in same way in switch

提交回复
热议问题