LoginSignup
3
2

More than 5 years have passed since last update.

switch文でのcontinue命令動作をC言語とPHPで比較する

Last updated at Posted at 2018-02-16

switch文でcontinue命令

C言語の場合

スクリーンショット 2018-02-17 3.56.31.png

きちんとcontinue命令がcontinue命令してる。

PHPの場合

スクリーンショット 2018-02-17 4.14.25.png
スクリーンショット 2018-02-17 4.19.23.png

2の2乗が表示されている。つまりcontinue命令がbreak命令と同じ動作をする。

これは注意しなければならない

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2