TOPUPchat logo...
Forgot password?

Select : C language | Java

Q.4] operation of switch case without break keyword

#include
int main()
{
int i=10;
switch (i){
      case 5:

printf("5");
               break;
      case 1:

           printf("1");
      case 10:
               printf("10");
      case 110:
               printf("101");
               break;
      }
getch();
}
    

Options]

A ) Compile Time error
B ) Runtime Error
C ) Logical Error
D ) No error.
        

Click to See Answer
C ) Logical Error    

Next | specifying bits in structure for variables in c

Previous | using x++ mulipletimes in C language in single expression

Hemen Ashodia [paper setter]
Register & recharge
Male Female
I agree Terms and Conditions