我是C的新手,需要帮助.我的代码如下.
#include<stdio.h>
#include<conio.h>
void main()
{
int suite=2;
switch(suite)
{
case 1||2:
printf("hi");
case 3:
printf("byee");
default:
printf("hello");
}
printf("I thought somebody");
getche();
}
Run Code Online (Sandbox Code Playgroud)
我在Turbo C工作,输出是helloI thought somebody.没有错误消息.
请让我知道这是如何工作的.