Home » C Programming » Decision Making » Question
  1. What will be the output of the following C code?
      #include <stdio.h>
    const int n = 10, m = 12;
    int main()
    {
    int P = 10;
    switch (P)
    {
    case n:
    printf("Yes...");
    case m:
    printf("No...\n");
    break;
    }
    }
    1. Yes...
    2. No...
    3. Yes... No...
    4. Runtime Error
    5. Compilation Error
Correct Option: C

Yes... No...



Your comments will be displayed only after manual approval.