Question
Comment on the output of this C code?
  int main()
  {
    int a = 1;
    switch (a)
    case 1:
      printf("%d", a);
    case 2:
      printf("%d", a);
    case 3:
      printf("%d", a);
    default:
      printf("%d", a);
  }
Answer: Option D
Was this answer helpful ?
none
Was this answer helpful ?
Submit Solution