Are Elipses in case statements standard C/C++

前端 未结 3 1859
南旧
南旧 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条回答
  •  南笙
    南笙 (楼主)
    2020-12-03 14:55

    This is a GCC extension to C, mentioned in this answer to what is basically a duplicate question, and confirmed in the GCC documentation.

提交回复
热议问题