Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
const int a = 1,  b = 2;
int main()
{
    int x = 1;
    switch (x)
    {
       case a:
          printf("yes ");
       case b:
          printf("no\n");
          break;
    }
}

A. yes no

B. yes

C. no

D. Compile time error

Answer: Option D


This Question Belongs to C Program >> Control Structures

Join The Discussion

Related Questions on Control Structures