Are Elipses in case statements standard C/C++

前端 未结 3 1849
南旧
南旧 2020-12-03 14:36

I was browsing some code in the linux kernel and I came across the statements like case \'0\' ... \'9\':

To try this out I created the test program belo

3条回答
  •  萌比男神i
    2020-12-03 15:00

    That is the case range extension of the GNU C compiler, it is not standard C or C++.

提交回复
热议问题