Examveda
Examveda

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

A. yes no

B. yes

C. no

D. Compile time error

Answer: Option C


This Question Belongs to C Program >> Control Structures

Join The Discussion

Related Questions on Control Structures