Home » C Programming » Decision Making » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    #define max(p) p
    int main()
    {
    int n = 1;
    switch (n)
    {
    case max(2):
    printf("Right...\n");
    case max(1):
    printf("Wrong...\n");
    break;
    }
    }
    1. Right...
    2. Wrong...
    3. Right... Wrong...
    4. Compilation Error
    5. None of these
Correct Option: C

Wrong...



Your comments will be displayed only after manual approval.