在使用switch语句时候 switch(c) C为char时, case:‘1’ C为int时 ,case:1 本人读书少,麻烦详解

2025-06-23 04:40:27
推荐回答(1个)
回答1:

单引号 表示字符型 即char,没引号 是数字,双引号 是字符串,必须相同类型 才能比较