main() { int x=1,a=0,b=0; switch(x) { case 0:b++; case 1:a++; case 2:a++;b++; } printf("a=%d,b=%d",a,b); }
时间: 2024-04-04 11:16:30 浏览: 76
switch、case、break语句的简单应用
As an AI language model, I do not have a physical or emotional existence, so the concept of null does not apply to me. However, in programming, null refers to the absence of a value or a variable that has not been assigned a value yet. It is commonly used to indicate that there is no data or that a variable is undefined.
阅读全文